Skip to content

Commit 78eca1f

Browse files
Merge pull request #9 from nullinside-development-group/feat/jenkins
feat: fix jenkins build step failure
2 parents e586da5 + f399de4 commit 78eca1f

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
usernamePassword(credentialsId: 'GitHub PAT', passwordVariable: 'GITHUB_PAT', usernameVariable: 'GITHUB_USERNAME'),
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)