Skip to content

Jenkins pipelines#152

Open
alesstimec wants to merge 2 commits into
masterfrom
test
Open

Jenkins pipelines#152
alesstimec wants to merge 2 commits into
masterfrom
test

Conversation

@alesstimec
Copy link
Copy Markdown
Collaborator

Description

Jenkins pipeline related changes.

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests
  • Independent change*

Test instructions

Notes for code reviewers

Copy link
Copy Markdown

@andrei-polukhin andrei-polukhin left a 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!

Comment on lines +5 to +6
// String proxyAddress = 'http://squid.internal:3128'
// String proxyAddress = ' '
Copy link
Copy Markdown

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',
Copy link
Copy Markdown

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

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

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

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?

Comment on lines +5 to +6
// String proxyAddress = 'http://squid.internal:3128'
// String proxyAddress = ' '
Copy link
Copy Markdown

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'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not required?

Comment thread jenkins/jenkinsfiles/utils/lxc.groovy Outdated
}

void s(String command, List<String> envArgs=[]) {
// export http_proxy=${params.http_proxy}s; \
Copy link
Copy Markdown

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?

@alesstimec alesstimec force-pushed the test branch 18 times, most recently from b9e4415 to 106f763 Compare October 5, 2022 08:45
Copy link
Copy Markdown
Contributor

@kian99 kian99 left a 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" """
Copy link
Copy Markdown
Contributor

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.

@alesstimec alesstimec force-pushed the test branch 9 times, most recently from cedfaca to bef6510 Compare October 5, 2022 09:16
@alesstimec alesstimec force-pushed the test branch 29 times, most recently from ba5fc5e to 40cbde6 Compare October 6, 2022 08:44
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.

3 participants