Skip to content

Commit 1865c51

Browse files
Merge pull request #12 from nullinside-development-group/feat/jenkins
feat: fix jenkins build step failure
2 parents 9f09643 + a7319a5 commit 1865c51

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)