-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathJenkinsfile
49 lines (47 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
#!groovy
pipeline {
agent any
stages {
stage('Checkout') {
steps {
echo 'Stage: Checkout...'
checkout scm
}
}
stage('VNF build') {
steps {
echo 'Stage: VNF build...'
sh "pipeline/build/build.sh"
}
}
stage('Service packaging') {
steps {
echo 'Stage: Service packaging...'
sh "pipeline/build/install-sdk.sh"
sh "pipeline/build/pack.sh"
}
}
stage('VNF publication') {
when {
// only push the master branch to DockerHub
branch 'master'
}
steps {
echo 'Stage: VNF publication...'
sh "pipeline/publish/publish.sh"
}
}
}
post {
success {
archiveArtifacts artifacts: 'sdk-projects/*.tgo'
archiveArtifacts artifacts: 'vnv-tests/test-packages/*.tgo'
}
failure {
emailext(from: "[email protected]",
to: "[email protected]",
subject: "FAILURE: ${env.JOB_NAME}/${env.BUILD_ID} (${env.BRANCH_NAME})",
body: "${env.JOB_URL}")
}
}
}