7 changeBranch = "change-${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}"
10 stage("Build ISO Image") {
12 sh "sudo rm -rf icn build/ubuntu icn-ubuntu-18.04.iso"
13 sh "git clone https://gerrit.akraino.org/r/icn"
15 sh "git fetch origin ${GERRIT_REFSPEC}:${changeBranch}"
16 sh "git checkout ${changeBranch}"
17 sh "git rebase origin/${GERRIT_BRANCH}"
19 sh "sudo icn/tools/setup_build_machine.sh"
20 // sh "sudo icn/tools/collect.sh"
21 sh "sudo icn/tools/create_usb_bootable.sh"
27 archiveArtifacts artifacts: "icn-ubuntu-18.04.iso", onlyIfSuccessful: true