mirror of
https://github.com/valitydev/dmt-client.git
synced 2024-11-06 09:25:16 +00:00
48 lines
922 B
Groovy
48 lines
922 B
Groovy
#!groovy
|
|
|
|
def finalHook = {
|
|
runStage('store CT logs') {
|
|
archive '_build/test/logs/'
|
|
}
|
|
}
|
|
|
|
build('dmt_client', 'docker-host', finalHook) {
|
|
checkoutRepo()
|
|
runStage('load_builtils') {
|
|
withGithubSshCredentials {
|
|
sh 'git submodule update --init'
|
|
}
|
|
}
|
|
|
|
def pipeDefault
|
|
def withWsCache
|
|
runStage('load pipeline') {
|
|
env.JENKINS_LIB = "builtils/jenkins_lib"
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
|
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
|
}
|
|
|
|
pipeDefault() {
|
|
runStage('compile') {
|
|
withGithubPrivkey {
|
|
sh 'make wc_compile'
|
|
}
|
|
}
|
|
runStage('lint') {
|
|
sh 'make wc_lint'
|
|
}
|
|
runStage('xref') {
|
|
sh 'make wc_xref'
|
|
}
|
|
runStage('dialyze') {
|
|
withWsCache("_build/default/rebar3_18.3_plt") {
|
|
sh 'make wc_dialyze'
|
|
}
|
|
}
|
|
runStage('test') {
|
|
sh "make wdeps_test"
|
|
}
|
|
}
|
|
|
|
}
|