We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a2289d commit fe4be60Copy full SHA for fe4be60
1 file changed
Jenkinsfile
@@ -27,7 +27,7 @@ def stageBuild(def context) {
27
}
28
stage('Build and Unit Test') {
29
withEnv(["TAGVERSION=${context.tagversion}", "NEXUS_HOST=${context.nexusHost}", "NEXUS_USERNAME=${context.nexusUsername}", "NEXUS_PASSWORD=${context.nexusPassword}", "JAVA_OPTS=${javaOpts}","GRADLE_TEST_OPTS=${gradleTestOpts}","ENVIRONMENT=${springBootEnv}"]) {
30
- def status = sh(script: "source use-j21.sh && ./gradlew clean build --stacktrace --no-daemon && source use-j17.sh", returnStatus: true)
+ def status = sh(script: "source use-j21.sh && chmod +x gradlew && ./gradlew clean build --stacktrace --no-daemon && source use-j17.sh", returnStatus: true)
31
if (status != 0) {
32
error "Build failed!"
33
0 commit comments