Testinc jenkins

This commit is contained in:
Axel 2020-08-25 12:58:12 +02:00 committed by Marc Garcia Puig
parent ba812e75a3
commit 508dd06e2f
1 changed files with 14 additions and 13 deletions

27
Jenkinsfile vendored
View File

@ -20,7 +20,7 @@ pipeline
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins.groovy")
jenkinsLib.CreateUbuntuBuildNode(JOB_ID)
jenkinsLib.CreateWindowsBuildNode(JOB_ID)
}
@ -43,6 +43,7 @@ pipeline
{
steps
{
sh 'source .venv/bin/activate'
sh 'make setup'
}
}
@ -94,9 +95,9 @@ pipeline
sh 'make package ARGS="--packages=AdditionalMaps --clean-intermediate"'
sh 'make examples ARGS="localhost 3654"'
}
post
post
{
always
always
{
archiveArtifacts 'Dist/*.tar.gz'
stash includes: 'Dist/CARLA*.tar.gz', name: 'ubuntu_package'
@ -142,11 +143,11 @@ pipeline
}
}
}
post
post
{
always
{
deleteDir()
always
{
deleteDir()
node('master')
{
@ -154,7 +155,7 @@ pipeline
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins.groovy")
jenkinsLib.DeleteUbuntuBuildNode(JOB_ID)
}
}
@ -247,11 +248,11 @@ pipeline
}
}
}
post
post
{
always
{
deleteDir()
always
{
deleteDir()
node('master')
{
@ -259,7 +260,7 @@ pipeline
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins.groovy")
jenkinsLib.DeleteWindowsBuildNode(JOB_ID)
}
}