From ecf6d15cb1693b9f4e773a3383baf8a31713e08d Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Sun, 24 Jan 2021 21:11:41 -0500 Subject: [PATCH] Rename repo_root to git_root. --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bac2103..b6528aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,13 +35,13 @@ pipeline { PIPELINE_BUILD_NUMBER = "${env.BUILD_NUMBER}" ACTION_REPORT = "${agent_root_folder}/actions.${env.BUILD_NUMBER}.csv" ACTION_URL="${actionURL}" - REPO_ROOT="${repo_root}" + REPO_ROOT="${git_root}" } parameters { - string(name: 'repo_root', + string(name: 'git_root', defaultValue: 'https://code-repo.d4science.org/TestActions/', description: 'The root URL of the repositories') string(name: 'repo_list', @@ -75,7 +75,7 @@ pipeline { stage(projects[i]) { echo "About to execute over ${projects[i]}" checkout_and_exec(projects[i], action_code) - sh "echo -e ${projects[i]},${repo_root}/${projects[i]},Completed >> $ACTION_REPORT" + sh "echo -e ${projects[i]},${git_root}/${projects[i]},Completed >> $ACTION_REPORT" } } } @@ -118,7 +118,7 @@ pipeline { * NOTE: 'credentialsId' be manually configured in Jenkins to access all the repos */ def checkout_and_exec(repo_name, actions) { - def repo_url = "${repo_root}/${repo_name}" + def repo_url = "${git_root}/${repo_name}" sh(script: "rm -r ${repo_name} || true", returnStdout: true)?.trim() checkout([ $class : 'GitSCM',