Skip to content

Conversation

@119Vik
Copy link
Contributor

@119Vik 119Vik commented Jul 24, 2020

Signed-off-by: Vitalii vitalij.kostenko@gmail.com

Summary

Updated OAI Jenkinsfile according to switching to GitHub and using private credentials

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 ."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

// 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}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

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)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@119Vik
Copy link
Contributor Author

119Vik commented Jul 29, 2020

ReRunOAITests

@119Vik
Copy link
Contributor Author

119Vik commented Jul 29, 2020

ReRunOAITests

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"]]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@119Vik

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.

Copy link
Contributor Author

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.

@119Vik 119Vik requested a review from tmdzk as a code owner August 4, 2020 12:52
@119Vik 119Vik requested review from ssanadhya and tmdzk August 5, 2020 10:19
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)
}
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, good catch. fixed.

119Vik added 3 commits August 12, 2020 15:35
Signed-off-by: Vitalii <vitalij.kostenko@gmail.com>
Signed-off-by: Vitalii <vitalij.kostenko@gmail.com>
Signed-off-by: Vitalii <vitalij.kostenko@gmail.com>
@119Vik
Copy link
Contributor Author

119Vik commented Aug 13, 2020

ReRunOAITests

3 similar comments
@119Vik
Copy link
Contributor Author

119Vik commented Aug 17, 2020

ReRunOAITests

@119Vik
Copy link
Contributor Author

119Vik commented Aug 17, 2020

ReRunOAITests

@119Vik
Copy link
Contributor Author

119Vik commented Aug 17, 2020

ReRunOAITests

@tmdzk tmdzk merged commit 7a9129d into magma:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants