Skip to content

Commit 217c965

Browse files
feat: fix jenkins build step failure
nullinside-development-group/nullinside-api#76
1 parent f78bd75 commit 217c965

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Jenkinsfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ pipeline {
1616
withCredentials([
1717
string(credentialsId: 'GITHUB_NULLINSIDE_ORG_RELEASE_TOKEN', variable: 'GITHUB_NULLINSIDE_ORG_RELEASE_TOKEN')
1818
]) {
19-
sh """
20-
bash go.sh
21-
"""
19+
script {
20+
def statusCode = sh script: "bash go.sh", returnStatus:true
21+
if (statusCode != 0) {
22+
error "Build Failed"
23+
}
24+
}
2225
}
2326
}
2427
}

0 commit comments

Comments
 (0)