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 7197a9e commit 1962debCopy full SHA for 1962deb
Jenkinsfile
@@ -40,10 +40,11 @@ pipeline {
40
withCredentials([gitUsernamePassword(credentialsId: 'gh-cred', gitToolName: 'Default')]) {
41
git credentialsId: 'gh-cred', url: 'https://github.com/lenn0n/jenkins-post-build.git'
42
bat "echo 'node_modules' > .gitignore"
43
- bat 'git add .'
+ bat 'dir'
44
+ bat 'git add build'
45
// 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."'
+ bat 'git commit -m "Commit from Jenkins" || echo "Nothing was added."'
47
+ bat 'git push -u origin HEAD:master || echo "Nothing was pushed."'
48
}
49
50
0 commit comments