We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 148f871 commit 2e580fdCopy full SHA for 2e580fd
scripts/deploy.groovy
@@ -1,5 +1,5 @@
1
node {
2
- git branch: 'master', url: 'https://github.com/code-troopers/website.git'
+ git credentialsId: 'ca0fa128-d2af-4c9b-9f77-3a2403d46725', url: 'git@github.com:code-troopers/website.git'
3
docker.build('website-node').inside(){
4
sh 'rm -rf node_modules && ln -s /usr/src/app/node_modules node_modules'
5
sh 'npm run jenkins.prebuild'
@@ -16,7 +16,6 @@ node {
16
17
docker.build('website-node').inside('-v /var/jenkins_home/.ssh:/root/.ssh') {
18
19
- sh 'git remote set-url origin [email protected]:code-troopers/website.git'
20
sh 'npm run jenkins.postbuild'
21
sh 'npm run jenkins.deploy'
22
}
0 commit comments