generated from gCubeCI/Pipeline-Docker-Template
remove unused method
This commit is contained in:
parent
05ef4fce32
commit
583879e393
|
@ -272,7 +272,6 @@ pipeline {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
//launch ansible deploy
|
||||
def deploy(String service, String version, String host){
|
||||
def now = new Date();
|
||||
|
@ -316,43 +315,6 @@ def checkupRelease(String service, String version){
|
|||
esac
|
||||
""")
|
||||
}
|
||||
|
||||
|
||||
|
||||
//parse all csv files found in the local folder and deploy the components defined inside
|
||||
def deployPendingJobs( def deployFolder){
|
||||
println ("searching files in folder ${deployFolder}");
|
||||
def files = findFiles(glob: "${deployFolder}/*.csv")
|
||||
if (files == null){
|
||||
println ("Nothing to do");
|
||||
}else{
|
||||
def serviceList = []
|
||||
for (def file : files){
|
||||
def records = readCSV file: "${file.path}"
|
||||
for (def record : records) {
|
||||
println("Processing record: "+record)
|
||||
if(!serviceList.contains(record.get(0))){
|
||||
stage(record.get(0)){
|
||||
println "Deploy on going of component: ${record.get(0)}"
|
||||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
|
||||
checkup(record.get(0), record.get(1), record.get(2));
|
||||
deploy(record.get(0), record.get(1), record.get(2));
|
||||
}
|
||||
}
|
||||
serviceList << record.get(0)
|
||||
}else{
|
||||
echo "${record.get(0)} already deployed. Deployment skipped."
|
||||
}
|
||||
|
||||
}
|
||||
sh "rm ${file.path}"
|
||||
}
|
||||
sh "rm -Rf ${deployFolder}"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//parse all csv files found in the local folder and deploy the components defined inside
|
||||
def parseDeployPendingJobs( def deployFolder){
|
||||
println ("searching files in folder ${deployFolder}");
|
||||
|
@ -388,7 +350,7 @@ def deployJobs(def serviceList){
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
//Deploy only release components. All the component are passed as: componentName,componentVersion
|
||||
def deployReleaseJobs(def serviceList){
|
||||
for (def record : serviceList) {
|
||||
println("Processing record: "+record)
|
||||
|
|
Loading…
Reference in New Issue