-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
58 lines (46 loc) · 1.69 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
node('durian') {
try {
stage('checkout') {
checkout(
[
$class: 'GitSCM',
branches: [[name: "*/master"]],
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'websiteconf'
]],
userRemoteConfigs: [[
credentialsId: '3cf5388f-54e2-491b-a7fc-83160dcab3e3',
url: '[email protected]:VEuPathDB/websiteconf.git'
]]
]
)
checkout(
[
$class: 'GitSCM',
branches: [[name: "*/master"]],
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'tsrc'
]],
userRemoteConfigs: [[
credentialsId: '3cf5388f-54e2-491b-a7fc-83160dcab3e3',
url: '[email protected]:VEuPathDB/tsrc.git'
]]
]
)
}
stage('build') {
sh '''
virtualenv -p python3 make_yaml_env
. ./make_yaml_env/bin/activate
pip install -r websiteconf/requirements.txt
cd websiteconf
./make_yaml.py -m ../tsrc/manifest.yml -o /var/www/software.apidb.org/siteconf/site-conf.yaml
'''
}
}
catch (exc) {
throw exc
}
}