diff --git a/Jenkinsfile b/Jenkinsfile index cd4fe65..9eabfe6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,9 @@ def agent_root_folder = '/var/lib/jenkins/.m2' println "Type of build: ${params.Type}" //locate the build file -String reportURL = "https://code-repo.d4science.org/gCubeCI/gCubeReleaseConfigs/raw/branch/master/closed/${gCube_release_version}/build_commits.${report_number}.csv" +//String reportURL = "https://code-repo.d4science.org/gCubeCI/gCubeReleaseConfigs/raw/branch/master/closed/${gCube_release_version}/build_commits.${report_number}.csv" +//just for test a fake build file +String reportURL="https://code-repo.d4science.org/TestActions/release_test/raw/branch/master/build_commits.1375.csv" println "Querying ${reportURL}" //load and parse the release file @@ -70,7 +72,7 @@ pipeline { echo "About to push ${components[i]['name']} with version ${components[i]['version']}" checkout_from_reference(components[i]['name'], components[i]['gitRepo'], components[i]['commitID'], components[i]['version'], gCube_release_version) - sh "echo -e ${components[i]['name']},${components[i]['version']},${components[i]['gitRepo']},${components[i]['commitID']},v${components[i]['version']},r${gCube_release_version} >> $TAG_REPORT" + sh "echo -e ${components[i]['name']},${components[i]['version']},${components[i]['gitRepo']},${components[i]['commitID']},v${components[i]['version']},r${gCube_release_version} >> $PUSH_REPORT" } } } @@ -147,6 +149,7 @@ def push(repo_url, repo_name, tag, gCube_release_version, commit) { sh(""" git remote set-url origin $repository git fetch + mvn generate-resources """) } fileContent = readFile(file: "jsonfilepath", encoding: "UTF-8")