Skip to content

Commit a3b33db

Browse files
committed
Workaround Github auth issue
1 parent 86bd049 commit a3b33db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployment/jenkins/deploy-to-live.jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pipeline {
2525
usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD']]) {
2626
sh 'git clone https://github.com/jncc/sac-microsite.git . --branch=gh-pages --depth 1'
2727
sh 'git config --local credential.helper "!p() { echo username=\\$GIT_USERNAME; echo password=\\$GIT_PASSWORD; }; p"'
28-
sh 'git rm -rf .'
28+
sh 'git rm -rf --quiet .'
2929
sh 'git clean -fxd'
3030
sh 'cp -r ../master/output/html/* .'
3131
sh 'cp -r ../master/docs/* .'
@@ -36,7 +36,7 @@ pipeline {
3636
sh 'ls -a'
3737
sh 'git add --all'
3838
sh 'git commit -a -m "Jenkins Build ' + env.BUILD_NUMBER + '" --author "Jenkins <jenkins@jncc.gov.uk>"'
39-
sh 'git push --force'
39+
sh 'git push --force --repo https://$GIT_USERNAME:$GIT_PASSWORD@github.com/jncc/sac-microsite.git'
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)