Remove creation of a testing config
This is no more needed because a testing config was placed in a source
code repository.
Change-Id: Idad8b580e02a50d5ae11cd37dcf0f2f91e680810
diff --git a/test-nodejs-pipeline.groovy b/test-nodejs-pipeline.groovy
index 574734c..80b60c7 100644
--- a/test-nodejs-pipeline.groovy
+++ b/test-nodejs-pipeline.groovy
@@ -55,12 +55,6 @@
throw new Exception("Cannot checkout gerrit patchset, GERRIT_REFSPEC and DEFAULT_GIT_REF is null")
}
}
- stage('Generate config file for devops portal') {
- writeFile (
- file: "${workspace}/test_config.json",
- text: "${JSON_CONFIG}"
- )
- }
stage('Start container') {
def workspace = common.getWorkspace()
def timeStamp = new Date().format("HHmmss", TimeZone.getTimeZone('UTC'))
@@ -102,7 +96,6 @@
sh("docker-compose -f ${COMPOSE_PATH} -p ${uniqId} ${dockerCleanupCommands[i]} || true")
}
sh("docker network rm ${uniqId}_default || true")
- sh("rm -f ${workspace}/test_config.json || true")
common.infoMsg("Container with id ${containerName} was removed.")
}
}