Skip to content

Commit c5f0e42

Browse files
committed
Set git config user and pass in Jenkinsfile
1 parent 7e9a7d2 commit c5f0e42

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Jenkinsfile

+2
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ pipeline {
390390
steps {
391391
dir("subhub-link-checker") {
392392
echo "Deploying to GitHub pages..."
393+
sh "git config user.email '[email protected]' && git config --global user.name 'ci-auto'"
394+
sh "git config credential.helper '/bin/bash credentials-helper-ci.sh'"
393395
sh "npm run deploy"
394396
}
395397
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/bash
2+
# File for retrieving Git username and password from Jenkins. Only applicable from CI server.
3+
echo username=$GIT_CREDS_USR
4+
echo password=$GIT_CREDS_PSW

0 commit comments

Comments
 (0)