Skip to content

Commit

Permalink
Merge pull request #84 from arjbingly/sanchitvj-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
arjbingly authored Apr 13, 2024
2 parents a5074f2 + e6c7052 commit 1e4c50c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,14 @@ pipeline {
}
}
post {
failure{
changed{
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'
}
}
success{
sshagent(credentials: ['GithubKey']){
sh 'git checkout main'
sh 'python3 ci/modify_test_status.py'
if (currentBuild.currentResult == 'SUCCESS'){
sh 'python3 ci/modify_test_status.py' }
else {
sh 'python3 ci/modify_test_status.py --fail'
}
sh 'git add README.md'
sh 'git commit -m "test status updated"'
sh 'git push'
Expand Down

0 comments on commit 1e4c50c

Please sign in to comment.