forked from Yelp/paasta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
41 lines (34 loc) · 1007 Bytes
/
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
@Library('jenkinsfile_stdlib') _
yproperties() // Sets releng approved global properties (SCM polling, build log rotation, etc)
CHANNELS = ['paasta']
GIT_SERVER = '[email protected]'
PACKAGE_NAME = 'mirrors/Yelp/paasta'
DIST = ['trusty', 'xenial', 'bionic']
commit = ''
ircMsgResult(CHANNELS) {
ystage('Test') {
node {
ensureCleanWorkspace {
commit = clone(
PACKAGE_NAME,
)['GIT_COMMIT']
sh 'make itest'
}
}
}
// Runs `make itest_${version}` and attempts to upload to apt server if not an automatically timed run
// This will automatically break all the steps into stages for you
debItestUpload(
repo: PACKAGE_NAME,
versions: DIST,
committish: commit,
)
ystage('Upload to PyPi') {
node {
promoteToPypi(
"[email protected]:mirrors/Yelp/paasta.git",
commit,
)
}
}
}