Skip to content

Commit 74162d1

Browse files
committed
Try to fix git credentials
1 parent b68ec7d commit 74162d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/deploy.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ node {
1414
}
1515

1616
node {
17-
docker.build('website-node').inside(){
17+
docker.build('website-node').inside('-v /var/jenkins_home/.ssh:/root/.ssh') {
18+
sh 'git config --global user.email "[email protected]" && git config --global user.name "Jenkins"'
1819
sh 'rm -rf node_modules && ln -s /usr/src/app/node_modules node_modules'
1920
sh 'npm run jenkins.postbuild'
2021
sh 'npm run jenkins.deploy'

0 commit comments

Comments
 (0)