forked from sonata-nfv/tng-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.deprecated
51 lines (51 loc) · 1.33 KB
/
Jenkinsfile.deprecated
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
50
51
#!groovy
//
// Attention: This is deprecated.
// We use a FreeStyle Jenkins job to build this project.
// More info: Felipe and Manuel
//
pipeline {
agent any
stages {
stage('Checkout') {
steps {
echo 'Stage: Checkout...'
checkout scm
}
}
stage('Build') {
steps {
echo 'Stage: Packaging 5GTANGO packages ...'
// install the SDK to be able to package
sh "pipeline/build/install-sdk.sh"
// package all projects in 'packages/'
sh "pipeline/build/pack.sh"
}
}
stage('Test') {
steps {
echo 'Stage: Test...'
}
}
stage('Publication') {
when {
// only push the master branch to DockerHub
branch 'master'
}
steps {
echo 'Stage: Publication...'
}
}
}
post {
success {
archiveArtifacts artifacts: '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}")
}
}
}