JenkinsD 378 B

12345678910111213141516
  1. pipeline {
  2. agent any
  3. stages {
  4. stage ('Build') {
  5. steps {
  6. sh "rm -rf build/libs/"
  7. sh "chmod +x gradlew"
  8. sh "./gradlew clean --stacktrace"
  9. sh "./gradlew build publish --refresh-dependencies --stacktrace"
  10. archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
  11. }
  12. }
  13. }
  14. }