2018-11-05 09:36:31 +03:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Pipeline for building and upload deb package of AMDVLK
|
|
|
|
*
|
|
|
|
* Build parameters:
|
|
|
|
* @githubToken: token to access github
|
|
|
|
*/
|
|
|
|
|
2018-03-23 23:49:32 +03:00
|
|
|
pipeline {
|
2018-11-05 09:36:31 +03:00
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
stage("BuildPackage") {
|
2019-01-08 11:19:20 +03:00
|
|
|
agent { label "linux-build && ubuntu" }
|
2018-11-05 09:36:31 +03:00
|
|
|
steps {
|
|
|
|
runScript()
|
|
|
|
}
|
2018-03-24 00:51:33 +03:00
|
|
|
}
|
2018-03-23 23:49:32 +03:00
|
|
|
}
|
2018-11-05 09:36:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
def runScript() {
|
|
|
|
def workDir = "${WORKSPACE}"
|
|
|
|
|
2018-11-05 09:44:48 +03:00
|
|
|
sh "python ${WORKSPACE}/utils/amdvlk_build_deb_from_tag.py -w ${WORKSPACE} -a ${githubToken}"
|
2018-11-05 09:36:31 +03:00
|
|
|
}
|