2 // boolean: BUILD_FROM_SOURCE
6 node("${params.NODE}") {
9 tag_or_branch = params.COMMIT_ID.replaceAll(/\./,"")
10 container_name_prefix = "osm-${tag_or_branch}"
11 container_name = "${container_name_prefix}-${BUILD_NUMBER}"
15 // check for previous containers and clean them up
16 sh "jenkins/system/delete_old_containers.sh ${container_name_prefix}"
21 if ( params.BUILD_FROM_SOURCE )
23 from_source = '--source'
26 sh "jenkins/host/start_build system --build-container ${container_name} -b ${params.COMMIT_ID} ${from_source}"
27 sh "echo ${container_name} > build_version.txt"
28 archiveArtifacts artifacts: "build_version.txt"