-
Notifications
You must be signed in to change notification settings - Fork 30
Jenkins pipelines #152
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
base: master
Are you sure you want to change the base?
Jenkins pipelines #152
Conversation
andrei-polukhin
left a comment
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.
LGTM from the Jenkins pseudo-code side. Candid logic should be checked separately.
Thanks for working on this!
| // String proxyAddress = 'http://squid.internal:3128' | ||
| // String proxyAddress = ' ' |
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.
Do we need these comments? 🤷
| ], | ||
| userRemoteConfigs: [ | ||
| [ | ||
| credentialsId: '054810bf-9336-43b2-b9ed-e45dec6c31d2', |
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.
Cannot we use credentialsId: 'commercial-systems-bot'? I cannot understand what this credential is for 🤷
| script { | ||
| checkout changelog: false, poll: false, scm: [ | ||
| $class: 'GitSCM', | ||
| branches: [[name: "*/test"]], |
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.
We will have master on production, right?
| } | ||
| post { | ||
| always { | ||
| node('worker-3') { |
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.
There is slave-2 for agent, but worker-3 in post - is it to distribute load equally?
| lxc.s('sudo apt-get update') | ||
| lxc.s('sudo apt install make') | ||
| lxc.s('sudo apt-get install build-essential autoconf python-dev-is-python3 -y') // GCC for CGO | ||
| usr = "${env.GITHUB_PAT_AUTH_USR}" |
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.
usr is always canonical, correct?
| // String proxyAddress = 'http://squid.internal:3128' | ||
| // String proxyAddress = ' ' |
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.
Should we uncomment this on production?
| echo "error occured: ${err}" | ||
| } | ||
| oci.buildImage("${imageName}:latest") | ||
| sh 'env' |
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.
Not required?
| } | ||
|
|
||
| void s(String command, List<String> envArgs=[]) { | ||
| // export http_proxy=${params.http_proxy}s; \ |
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.
Will we use this commented code somehow?
b9e4415 to
106f763
Compare
kian99
left a comment
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.
LGTM
| stage('Archive charm') { | ||
| steps { | ||
| script { | ||
| String getCharmNamCmd = """echo "\$(cat ./charms/candid-k8s/metadata.yaml | yq .name)_ubuntu-20.04-amd64.charm" """ |
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.
The charm name as defined here could change if the "run-on" parameters in charmcraft.yaml are changed.
cedfaca to
bef6510
Compare
3d9f65d to
0e5351c
Compare
Description
Jenkins pipeline related changes.
Engineering checklist
Check only items that apply
Test instructions
Notes for code reviewers