Skip to content

Commit c201535

Browse files
Merge pull request #74 from nullinside-development-group/feat/jenkins
feat: fix jenkins build step failure
2 parents ac8d758 + 7611f50 commit c201535

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
@@ -13,9 +13,12 @@ pipeline {
1313

1414
stage('Build & Deploy') {
1515
steps {
16-
sh """
17-
bash go.sh
18-
"""
16+
script {
17+
def statusCode = sh script: "bash go.sh", returnStatus:true
18+
if (statusCode != 0) {
19+
error "Build Failed"
20+
}
21+
}
1922
}
2023
}
2124
}

0 commit comments

Comments
 (0)