-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJenkinsfile
39 lines (39 loc) · 1.03 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pipeline {
agent any
stages {
stage('Install') {
steps {
echo 'Installing...'
sh 'npm install'
}
}
// Tests run using GitHub Actions
// stage('Test') {
// steps {
// echo 'Testing...'
// sh 'npm run test'
// }
// }
// stage('Secrets') {
// steps {
// echo 'Setting up secrets...'
// sh 'rm ./src/appsettings.secrets.ts -f'
// withCredentials([file(credentialsId: 'MAPBOX_SECRET', variable: 'MAPBOX_SECRET')]) {
// sh 'cp $MAPBOX_SECRET ./src/appsettings.secrets.ts';
// }
// }
// }
stage('Bundle') {
steps {
echo 'Bundling...'
sh 'npm run build'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'sh sh/deploy.sh'
}
}
}
}