Jenkinsfile small clean
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -14,7 +14,9 @@ def build_docker(docker_image, docker_dir, release_dir) {
|
|||||||
}
|
}
|
||||||
return "\n - ${image_name}"
|
return "\n - ${image_name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '10', daysToKeepStr: '', numToKeepStr: '20']], copyArtifactPermission('*')]);
|
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '10', daysToKeepStr: '', numToKeepStr: '20']], copyArtifactPermission('*')]);
|
||||||
|
|
||||||
node {
|
node {
|
||||||
stage("Download SRC") {
|
stage("Download SRC") {
|
||||||
checkout scm
|
checkout scm
|
||||||
@@ -40,7 +42,10 @@ node {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sh "docker system prune -f"
|
stage("Clean") {
|
||||||
|
sh "docker system prune -f"
|
||||||
|
}
|
||||||
|
|
||||||
archiveArtifacts 'release/*'
|
archiveArtifacts 'release/*'
|
||||||
echo "${_msg}"
|
echo "${_msg}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user