remove inject phase
we move products into output directory during generation phases
Change-Id: I1cce675d98a79fe3503fb857b6b33d89b7062084
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index 0986c4e..faaf704 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -38,6 +38,8 @@
def targetBranch = "feature/${clusterName}"
def outputDestination = "${modelEnv}/classes/cluster/${clusterName}"
+ currentBuild.description = clusterName
+
stage ('Download Cookiecutter template') {
git.checkoutGitRepository(templateEnv, COOKIECUTTER_TEMPLATE_URL, COOKIECUTTER_TEMPLATE_BRANCH, COOKIECUTTER_TEMPLATE_CREDENTIALS)
}
@@ -130,12 +132,6 @@
writeFile(file: nodeFile, text: nodeString)
}
- stage('Inject changes to Reclass model') {
- def outputSource = "${env.WORKSPACE}/template/output/"
- sh "mkdir -p ${outputDestination}"
- sh(returnStdout: true, script: "cp -vr ${outputSource} ${outputDestination}")
- }
-
stage ('Save changes to Reclass model') {
if (COMMIT_CHANGES.toBoolean()) {
git.changeGitBranch(modelEnv, targetBranch)