Skip to content

Commit 2e580fd

Browse files
committed
feat(deploy): checkout git repo with git url
1 parent 148f871 commit 2e580fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/deploy.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node {
2-
git branch: 'master', url: 'https://github.com/code-troopers/website.git'
2+
git credentialsId: 'ca0fa128-d2af-4c9b-9f77-3a2403d46725', url: 'git@github.com:code-troopers/website.git'
33
docker.build('website-node').inside(){
44
sh 'rm -rf node_modules && ln -s /usr/src/app/node_modules node_modules'
55
sh 'npm run jenkins.prebuild'
@@ -16,7 +16,6 @@ node {
1616
node {
1717
docker.build('website-node').inside('-v /var/jenkins_home/.ssh:/root/.ssh') {
1818
sh 'rm -rf node_modules && ln -s /usr/src/app/node_modules node_modules'
19-
sh 'git remote set-url origin [email protected]:code-troopers/website.git'
2019
sh 'npm run jenkins.postbuild'
2120
sh 'npm run jenkins.deploy'
2221
}

0 commit comments

Comments
 (0)