diff --git a/ci-scripts/Jenkinsfile-NU-Col-CI b/ci-scripts/Jenkinsfile-NU-Col-CI index 250c413b139a6c5df520a489cc16a9958d00180f..121e04a3cf604cf9750af2e594a4f53f7c788761 100644 --- a/ci-scripts/Jenkinsfile-NU-Col-CI +++ b/ci-scripts/Jenkinsfile-NU-Col-CI @@ -55,14 +55,16 @@ pipeline { stage ("print latest commit info") { steps { script { - echo "Building on: " - echo " Repository -- ${GIT_URL}" - echo " Branch -- ${GIT_BRANCH}" - echo " Commit -- ${GIT_COMMIT}" - echo "ENV eNB_mergeRequest: ${params.eNB_mergeRequest}" - echo "ENV eNB_Repository: ${params.eNB_Repository}" - echo "ENV source branch: ${params.eNB_Branch}" - echo "ENV target branch: ${params.eNB_TargetBranch}" + gitlabCommitStatus(name: "Print latest commit info") { + echo "Building on: " + echo " Repository -- ${GIT_URL}" + echo " Branch -- ${GIT_BRANCH}" + echo " Commit -- ${GIT_COMMIT}" + echo "ENV eNB_mergeRequest: ${params.eNB_mergeRequest}" + echo "ENV eNB_Repository: ${params.eNB_Repository}" + echo "ENV source branch: ${params.eNB_Branch}" + echo "ENV target branch: ${params.eNB_TargetBranch}" + } } } } @@ -70,16 +72,20 @@ pipeline { stage ('Clone Ansible toolchain') { steps { script { - sh "git clone https://gitlab.com/shweta.shrivastava/colosseum-cm.git" + gitlabCommitStatus(name: "Clone Ansible scripts") { + sh "git clone https://gitlab.com/shweta.shrivastava/colosseum-cm.git" + } } } } - stage ('Set up Ansible toolchain') { + stage ('Configure Ansible toolchain') { steps { script { - dir ('colosseum-cm') { - sh "git checkout oai-ci" - sh "./bootstrap.sh ${GIT_URL} ${GIT_BRANCH} ${GIT_COMMIT}" + gitlabCommitStatus(name: "Configure Ansible toolchain") { + dir ('colosseum-cm') { + sh "git checkout oai-ci" + sh "./bootstrap.sh ${GIT_URL} ${params.eNB_Branch} ${GIT_COMMIT}" + } } } } @@ -87,8 +93,10 @@ pipeline { stage ('Run Ansible toolchain') { steps { script { - dir ('colosseum-cm/ansible') { - sh "ansible-playbook oai.yml" + gitlabCommitStatus(name: "Run Ansible toolchain") { + dir ('colosseum-cm/ansible') { + sh "ansible-playbook oai.yml" + } } } } diff --git a/ci-scripts/Jenkinsfile-NU-main b/ci-scripts/Jenkinsfile-NU-main index 4daab62663d2e07ae2003aa9460e548f9efb3ad2..77fa9856a089dc2b0735c9cc782160de8723e1c2 100644 --- a/ci-scripts/Jenkinsfile-NU-main +++ b/ci-scripts/Jenkinsfile-NU-main @@ -57,18 +57,20 @@ pipeline { stages { stage ("print latest commit info") { steps { - script { - echo "Building on: " - echo " Repository -- ${GIT_URL}" - echo " Branch -- ${GIT_BRANCH}" - echo " Commit -- ${GIT_COMMIT}" - //sh 'printenv' - echo "ENV request type: ${env.gitlabMergeRequestIid}" - echo "ENV action type: ${env.gitlabActionType}" - echo "ENV branch: ${env.gitlabBranch}" - echo "ENV source branch: ${env.gitlabSourceBranch}" - echo "ENV target branch: ${env.gitlabTargetBranch}" - } + script { + gitlabCommitStatus(name: "Print latest commit info") { + echo "Building on: " + echo " Repository -- ${GIT_URL}" + echo " Branch -- ${GIT_BRANCH}" + echo " Commit -- ${GIT_COMMIT}" + //sh 'printenv' + echo "ENV request type: ${env.gitlabMergeRequestIid}" + echo "ENV action type: ${env.gitlabActionType}" + echo "ENV branch: ${env.gitlabBranch}" + echo "ENV source branch: ${env.gitlabSourceBranch}" + echo "ENV target branch: ${env.gitlabTargetBranch}" + } + } } } // stage ("Verify Parameters") {