38 lines
1.1 KiB
Groovy
38 lines
1.1 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
label 'docker-x86_64'
|
|
filename 'Dockerfile.jenkins'
|
|
args '--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock'
|
|
}
|
|
}
|
|
|
|
options {
|
|
disableConcurrentBuilds()
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
|
}
|
|
|
|
parameters {
|
|
//string(name: 'SCHEMES', defaultValue: 'chibi chicken gauche kawa racket sagittarius stklos', description: '')
|
|
string(name: 'SCHEMES', defaultValue: 'chibi', description: '')
|
|
}
|
|
|
|
stages {
|
|
stage('Tests x86_64 Debian') {
|
|
steps {
|
|
script {
|
|
params.SCHEMES.split().each { SCHEME ->
|
|
stage("${SCHEME}") {
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
sh "make package"
|
|
sh "make SCHEME=${SCHEME} test"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|