forked from GPUOpen-Drivers/AMDVLK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (31 loc) · 799 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
#!/usr/bin/env groovy
/**
* Pipeline for building and upload deb package of AMDVLK
*
* Build parameters:
* @githubToken: token to access github
*/
def buildNode = "Ubuntu && 18-04 && vulkan"
pipeline {
agent none
parameters {
string(
name: "buildNode",
defaultValue: params.buildNode ? params.buildNode : buildNode,
description: "Jenkins node label or name of machine to run build stage on"
)
}
stages {
stage("BuildPackage") {
agent {
node { label params.buildNode }
}
steps {
runScript()
}
}
}
}
def runScript() {
sh "python3 ${WORKSPACE}/utils/amdvlk_build_deb_from_tag.py -w ${WORKSPACE} -a ${githubToken}"
}