Skip to content

Commit

Permalink
Merge pull request #80 from arjbingly/sanchitvj-patch-1
Browse files Browse the repository at this point in the history
cloning instead
  • Loading branch information
arjbingly authored Apr 13, 2024
2 parents 8f2cb01 + 7b41634 commit 2627299
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,24 @@ pipeline {
junit 'pytest-report.xml'
}
}
cleanup{
cleanWs(
cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true,
patterns: [[pattern: '.gitignore', type: 'INCLUDE'],
[pattern: '.propsfile', type: 'EXCLUDE']]
)
}
}
}
}
post {
failure{
sshagent(credentials: ['GithubKey']){
sh 'git checkout main'
sh 'git clone [email protected]:arjbingly/Capstone_5.git'
sh 'cd Capstone_5'
sh 'python3 ci/modify_test_status.py --fail'
sh 'git add README.md'
sh 'git commit -m "test status updated"'
Expand All @@ -118,7 +129,8 @@ pipeline {
}
success{
sshagent(credentials: ['GithubKey']){
sh 'git checkout main'
sh '[email protected]:arjbingly/Capstone_5.git'
sh 'cd Capstone_5'
sh 'python3 ci/modify_test_status.py --fail'
sh 'git add README.md'
sh 'git commit -m "test status updated"'
Expand Down

0 comments on commit 2627299

Please sign in to comment.