File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments