Skip to content

Conversation

@alesstimec
Copy link
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

@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 = ' '

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',

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"]],

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') {

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}"

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 = ' '

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'

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; \

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
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
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 28 times, most recently from 3d9f65d to 0e5351c Compare October 12, 2022 12:38
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.

4 participants