forked from QMSTR/qmstr-demo-old
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
72 lines (57 loc) · 2.35 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
pipeline {
agent none
stages {
// as soon as the master branch of qmstr is built by the CI and creates artifacts,
// these binaries should be imported to the following jobs
stage('Compile with QMSTR'){
parallel{
stage('compile curl'){
environment {
PATH = "$PATH:$WORKSPACE/out/"
}
agent { label 'docker' }
steps {
copyArtifacts(projectName: 'QMSTR/qmstr/master')
sh "make curl"
}
}
stage('compile flask'){
agent { label 'docker' }
environment {
PATH = "$PATH:$WORKSPACE/out/"
}
steps {
copyArtifacts(projectName: 'QMSTR/qmstr/master')
sh "make flask"
}
}
stage('compile guava'){
agent { label 'docker' }
environment {
PATH = "$PATH:$WORKSPACE/out/"
}
steps {
copyArtifacts(projectName: 'QMSTR/qmstr/master')
sh "make guava"
}
}
}
}
// stage('Publish report') {
// steps {
// dir("web"){
// withEnv(["PATH+SNAP=/snap/bin"]){
// sh 'git submodule init && git submodule update'
// sh 'cp ${WORKSPACE}/qmstr-demo/demos/curl/qmstr-reports.tar.bz2 ./'
// sh '(cd ./static && tar xvjf ../qmstr-reports.tar.bz2 && mv ./reports ./packages)'
// sh './scripts/generate-data-branch.sh ./tempfolder'
// sh 'git config http.sslVersion tlsv1.2'
// withCredentials([usernamePassword(credentialsId: '6374572f-c47a-4939-beda-2ee601d65ff7', passwordVariable: 'cipassword', usernameVariable: 'ciuser')]) {
// //sh 'git push --force https://${ciuser}:${cipassword}@github.com/qmstr/web gh-pages'
// }
// }
// }
// }
// }
}
}