We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a0f21 commit 7197a9eCopy full SHA for 7197a9e
Jenkinsfile
@@ -41,8 +41,9 @@ pipeline {
41
git credentialsId: 'gh-cred', url: 'https://github.com/lenn0n/jenkins-post-build.git'
42
bat "echo 'node_modules' > .gitignore"
43
bat 'git add .'
44
- bat "git commit -m 'Commit from Jenkins' || true"
45
- bat "git push -u origin HEAD:master || true"
+ // Watch out of using || true
+ bat 'git commit -m "Commit from Jenkins" || echo "Nothing added."'
46
+ bat 'git push -u origin HEAD:master || echo "Nothing pushed."'
47
}
48
49
0 commit comments