Commit f70d52d0 authored by Raphael Defosseux's avatar Raphael Defosseux

CI: trying to modify git env vars

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 56387d23
......@@ -41,6 +41,10 @@ pipeline {
gitLabConnection('OAI GitLab')
ansiColor('xterm')
}
environment {
GIT_BRANCH = "${ReplayGitSrcBranch}"
GIT_COMMIT = "${ReplayGitSrcCommit}"
}
stages {
stage ("Verify Parameters") {
......@@ -84,8 +88,6 @@ pipeline {
checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: "${ReplayGitSrcBranch}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitlab.eurecom.fr/oai/openairinterface5g.git']]]
sh "git checkout -f ${ReplayGitSrcCommit}"
sh "git log -n1"
env.GIT_BRANCH = ReplayGitSrcBranch
env.GIT_COMMIT = ReplayGitSrcCommit
}
}
post {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment