Skip to content

Commit

Permalink
Add the if clause shwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
aaradhak committed Mar 14, 2024
1 parent 4213016 commit ba325ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jobs/bump-jenkins-plugins.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ node {
}
}
}
def diffOutput = shwrapCapture("git diff --exit-code")

stage("Open a PR") {
if (diffOutput){
if (shwrapCapture("git diff --exit-code")){
def message = "jenkins/plugins: update to latest versions"
shwrap("""
cd fedora-coreos-pipeline
Expand Down

0 comments on commit ba325ed

Please sign in to comment.