Skip to content

Commit fe4be60

Browse files
authored
fix: ensure gradlew has the proper permissions to be executed in jenkinsfile (#5) (#6)
1 parent 6a2289d commit fe4be60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def stageBuild(def context) {
2727
}
2828
stage('Build and Unit Test') {
2929
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)
30+
def status = sh(script: "source use-j21.sh && chmod +x gradlew && ./gradlew clean build --stacktrace --no-daemon && source use-j17.sh", returnStatus: true)
3131
if (status != 0) {
3232
error "Build failed!"
3333
}

0 commit comments

Comments
 (0)