This commit is contained in:
2026-06-11 11:33:47 +05:00
parent da55bf62ed
commit eff52d6171
7 changed files with 26 additions and 106 deletions
Vendored
+10 -8
View File
@@ -3,7 +3,7 @@ node {
checkout scm
docker_tag = 'latest'
projectname ='app'
projectname ='doc'
packagejson = readJSON file: 'package.json'
docker_tag = packagejson['version']
@@ -14,7 +14,9 @@ node {
image_doc_latest = image_name + ':latest';
}
pipeline {
agent any
agent {
label 'jenkins-node-01'
}
options {
timestamps()
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
@@ -53,11 +55,11 @@ pipeline {
}
}
}
stage('docker cleanup'){
steps {
sh label: '', script: 'docker rmi ' + image_doc
sh label: '', script: 'docker rmi ' + image_doc_latest
}
}
// stage('docker cleanup'){
// steps {
// sh label: '', script: 'docker rmi ' + image_doc
// sh label: '', script: 'docker rmi ' + image_doc_latest
// }
// }
}
}