Merge "Adding TLS authentication" into dev/icn-v0.2.0
[icn.git] / Jenkinsfile
1 pipeline {
2     agent any
3     options {
4         skipDefaultCheckout()
5     }
6     environment {
7         changeBranch = "change-${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}"
8     }
9     stages {
10         stage("Build ISO Image") {
11             steps {
12                 sh "sudo rm -rf icn build/ubuntu icn-ubuntu-18.04.iso"
13                 sh "git clone https://gerrit.akraino.org/r/icn"
14                 dir("icn") {
15                     sh "git fetch origin ${GERRIT_REFSPEC}:${changeBranch}"
16                     sh "git checkout ${changeBranch}"
17                     sh "git rebase origin/${GERRIT_BRANCH}"
18                 }
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"
22             }
23         }
24     }
25     post {
26         always {
27             archiveArtifacts artifacts: "icn-ubuntu-18.04.iso", onlyIfSuccessful: true
28         }
29     }
30 }