-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
37 lines (35 loc) · 1.07 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
#!groovy
pipeline {
agent any
environment {
CC = 'clang'
AB = 'CD'
}
stages {
stage('Build'){
steps {
echo "start building"
echo "Running ${env.AB} ${env.BUILD_ID} on ${env.JENKINS_URL}"
// archivcommenteArtifacts artifacts:'**/*.js', fingerprint: true
}
}
stage('Build Docker Image'){
steps {
echo "start building docker image"
sh "./build_and_push_docker.sh"
echo "docker build and push finished"
}
}
stage('Deploy'){
steps {
echo "pull the new docker image and replace the container"
// get the facebook secret from credential binding plugin
withCredentials([string(credentialsId: 'SATELLIZER_FACEBOOK_SECRET',
variable: 'SATELLIZER_FACEBOOK_SECRET')]) {
sh "./deploy.sh"
}
echo "deploy completed"
}
}
}
}