Skip to content

Commit aa1d861

Browse files
committed
Tried to change git url inside docker
1 parent 1be31d6 commit aa1d861

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
@@ -1,5 +1,5 @@
11
node {
2-
git branch: 'master', url: 'git@github.com:code-troopers/website.git'
2+
git branch: 'master', url: 'https://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,6 +16,7 @@ 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'
1920
sh 'npm run jenkins.postbuild'
2021
sh 'npm run jenkins.deploy'
2122
}

0 commit comments

Comments
 (0)