SHARE
TWEET

Untitled

a guest Jun 25th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. image: adoptopenjdk/openjdk12:alpine
  2.  
  3. stages:
  4.   - build
  5.   - check
  6.   - publish
  7.  
  8. variables:
  9.   GRADLE_OPTS: "-Dorg.gradle.daemon=false"
  10.  
  11. before_script:
  12.   - echo `pwd`
  13.   - export GRADLE_USER_HOME=`pwd`/.gradle
  14.   - rm -f  .gradle/caches/modules-2/modules-2.lock
  15.   - rm -fr .gradle/caches/*/plugin-resolution/
  16.  
  17. cache:
  18.   untracked: true
  19.   paths:
  20.     - .gradle/wrapper
  21.     - .gradle/caches
  22.     - "*/build"
  23.  
  24. build:
  25.   stage: build
  26.   script:
  27.     - ./gradlew build -x check
  28.   artifacts:
  29.     paths:
  30.       - "*/build/libs/*.jar"
  31.     expire_in: 1 week
  32.  
  33. check:
  34.   stage: check
  35.   script:
  36.     - ./gradlew check
  37.   artifacts:
  38.     reports:
  39.       junit: "*/build/test-results/test/TEST-*.xml"
  40.     expire_in: 1 week
  41.  
  42. bintray upload:
  43.   stage: publish
  44.   script:
  45.     - ./gradlew -Pversion=$CI_COMMIT_TAG bintrayUpload
  46.     - ls */build/libs/*.jar
  47.   only:
  48.     - tags
  49.  
  50. gradle plugin publish:
  51.   stage: publish
  52.   script:
  53.     - ./gradlew publishPlugins -Pversion=$CI_COMMIT_TAG -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET
  54.     - ls */build/libs/*.jar
  55.   only:
  56.     - tags
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top