Skip to content

Commit 1962deb

Browse files
authored
Update Jenkinsfile
1 parent 7197a9e commit 1962deb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ pipeline {
4040
withCredentials([gitUsernamePassword(credentialsId: 'gh-cred', gitToolName: 'Default')]) {
4141
git credentialsId: 'gh-cred', url: 'https://github.com/lenn0n/jenkins-post-build.git'
4242
bat "echo 'node_modules' > .gitignore"
43-
bat 'git add .'
43+
bat 'dir'
44+
bat 'git add build'
4445
// Watch out of using || true
45-
bat 'git commit -m "Commit from Jenkins" || echo "Nothing added."'
46-
bat 'git push -u origin HEAD:master || echo "Nothing pushed."'
46+
bat 'git commit -m "Commit from Jenkins" || echo "Nothing was added."'
47+
bat 'git push -u origin HEAD:master || echo "Nothing was pushed."'
4748
}
4849
}
4950
}

0 commit comments

Comments
 (0)