Skip to content

Commit

Permalink
Merge pull request #86 from arjbingly/sanchitvj-patch-2
Browse files Browse the repository at this point in the history
Update Jenkinsfile - using regression and fixed post actions
  • Loading branch information
arjbingly authored Apr 14, 2024
2 parents 085190d + ba6301f commit 72824df
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,25 @@ pipeline {
}
}
post {
changed{
fixed{
sshagent(credentials: ['GithubKey']){
sh 'git checkout main'
script{
if (currentBuild.currentResult == 'SUCCESS'){
sh 'python3 ci/modify_test_status.py' }
else {
sh 'python3 ci/modify_test_status.py --fail'
}
}
sh 'python3 ci/modify_test_status.py'
sh 'git add README.md'
sh 'git commit -m "test status updated"'
sh 'git push'
}

}
regression{
sshagent(credentials: ['GithubKey']){
sh 'git checkout main'
sh 'python3 ci/modify_test_status.py --fail'
sh 'git add README.md'
sh 'git commit -m "test status updated"'
sh 'git push'
}

}
cleanup{
cleanWs(
Expand Down

0 comments on commit 72824df

Please sign in to comment.