-
Notifications
You must be signed in to change notification settings - Fork 638
[jenkins]updated version of OAI Jenkins pipeline #2062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ci-scripts/JenkinsFile-GitLab
Outdated
| myShCmd('git status --ignored', new_host_flag, new_host_user, new_host) | ||
| sh "mkdir -p archives" | ||
| myShCmd('mkdir -p archives', new_host_flag, new_host_user, new_host) | ||
| // sh "git clone https://github.com/magma/magma.git ." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ci-scripts/JenkinsFile-GitLab
Outdated
| // sh "git clone https://github.com/119Vik/magma-1.git ." | ||
| checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '${sha1}']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'vik_github', refspec: '+refs/pull/*:refs/remotes/origin/pr/*', url: 'https://github.com/magma/magma.git']]] | ||
| GIT_COMMIT = sh returnStdout: true, script: 'git log -1 --pretty="%H"' | ||
| // echo "Git URL is ${GIT_URL}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
ci-scripts/JenkinsFile-GitLab
Outdated
| if ("MERGE".equals(env.gitlabActionType)) { | ||
| myShCmd('docker exec -it ci-cn-clang-formatter /bin/bash -c "cd /home && ./ci-scripts/checkCodingFormattingRules.sh --src-branch ' + env.ghprbSourceBranch +' --target-branch ' + env.ghprbTargetBranch + '"', new_host_flag, new_host_user, new_host) | ||
| } else { | ||
| // if ("MERGE".equals(env.gitlabActionType)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
ReRunOAITests |
|
ReRunOAITests |
ci-scripts/JenkinsFile-GitLab
Outdated
| myShCmd('git status --ignored', new_host_flag, new_host_user, new_host) | ||
| sh "mkdir -p archives" | ||
| myShCmd('mkdir -p archives', new_host_flag, new_host_user, new_host) | ||
| checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '${sha1}']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'vik_github', refspec: '+refs/pull/*:refs/remotes/origin/pr/*', url: "https://{{GIT_URL}}.git"]]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 things about this line.
- Now that we have a public repository, do we still need to provide credentials? I don't think so.
- I am not sure that you are handling the pull request correctly: my meaning is that we shall test the potential merge of the contributor's branch with the target branch. Not just the contributor's branch.
- I understand that the policy is to force the contributor to resync its branch against the latest version of
master. - But then you need a check to ensure it
- That is what I was doing in the section you removed.
- I understand that the policy is to force the contributor to resync its branch against the latest version of
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both make sense for me - let me update my PR.
ci-scripts/JenkinsFile-GitLab
Outdated
| myShCmdWithLog('cd lte/gateway && vagrant ssh magma_test -c "cd magma/lte/gateway/python/ && make"', 'archives/magma_vagrant_test_make1.log', new_host_flag, new_host_user, new_host) | ||
| myShCmdWithLog('cd lte/gateway && vagrant ssh magma_test -c "cd magma/lte/gateway/python/integ_tests/ && make"', 'archives/magma_vagrant_test_make2.log', new_host_flag, new_host_user, new_host) | ||
| } | ||
| // } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, good catch. fixed.
Signed-off-by: Vitalii <vitalij.kostenko@gmail.com>
Signed-off-by: Vitalii <vitalij.kostenko@gmail.com>
Signed-off-by: Vitalii <vitalij.kostenko@gmail.com>
|
ReRunOAITests |
3 similar comments
|
ReRunOAITests |
|
ReRunOAITests |
|
ReRunOAITests |
Signed-off-by: Vitalii vitalij.kostenko@gmail.com
Summary
Updated OAI Jenkinsfile according to switching to GitHub and using private credentials