Update Jenkinsfile

This commit is contained in:
Dany LE 2022-08-17 19:49:24 +02:00 committed by GitHub
parent a137ec52a1
commit 14c28b2c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
Jenkinsfile vendored
View File

@ -19,11 +19,6 @@ def build_plugin()
pipeline{ pipeline{
agent { node{ label'master' }} agent { node{ label'master' }}
options { options {
// Limit build history with buildDiscarder option:
// daysToKeepStr: history is only kept up to this many days.
// numToKeepStr: only this many build logs are kept.
// artifactDaysToKeepStr: artifacts are only kept up to this many days.
// artifactNumToKeepStr: only this many builds have their artifacts kept.
buildDiscarder(logRotator(numToKeepStr: "1")) buildDiscarder(logRotator(numToKeepStr: "1"))
// Enable timestamps in build log console // Enable timestamps in build log console
timestamps() timestamps()
@ -41,9 +36,6 @@ pipeline{
docker { docker {
image 'xsangle/ci-tools:latest-amd64' image 'xsangle/ci-tools:latest-amd64'
args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http' args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http'
// Run the container on the node specified at the
// top-level of the Pipeline, in the same workspace,
// rather than on a new node entirely:
reuseNode true reuseNode true
} }
} }
@ -59,9 +51,6 @@ pipeline{
docker { docker {
image 'xsangle/ci-tools:latest-arm64' image 'xsangle/ci-tools:latest-arm64'
args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http' args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http'
// Run the container on the node specified at the
// top-level of the Pipeline, in the same workspace,
// rather than on a new node entirely:
reuseNode true reuseNode true
} }
} }
@ -77,9 +66,6 @@ pipeline{
docker { docker {
image 'xsangle/ci-tools:latest-arm' image 'xsangle/ci-tools:latest-arm'
args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http' args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http'
// Run the container on the node specified at the
// top-level of the Pipeline, in the same workspace,
// rather than on a new node entirely:
reuseNode true reuseNode true
} }
} }
@ -99,4 +85,3 @@ pipeline{
} }
} }
} }
Footer