Merge lp:~mthaddon/mojo/jenkins-deb-upgrade into lp:mojo/mojo-specs

Proposed by Tom Haddon
Status: Merged
Approved by: Alexandre Gomes
Approved revision: 143
Merged at revision: 143
Proposed branch: lp:~mthaddon/mojo/jenkins-deb-upgrade
Merge into: lp:mojo/mojo-specs
Diff against target: 21 lines (+17/-0)
1 file modified
charm-testing/jenkins/create-upgrade-collect (+17/-0)
To merge this branch: bzr merge lp:~mthaddon/mojo/jenkins-deb-upgrade
Reviewer Review Type Date Requested Status
Mojo Maintainers Pending
Review via email: mp+373762@code.launchpad.net

Commit message

charm-testing/jenkins: ensure we collect the jenkins deb as part of our upgraded charm

Description of the change

charm-testing/jenkins: ensure we collect the jenkins deb as part of our upgraded charm

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 143

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'charm-testing/jenkins/create-upgrade-collect'
2--- charm-testing/jenkins/create-upgrade-collect 1970-01-01 00:00:00 +0000
3+++ charm-testing/jenkins/create-upgrade-collect 2019-10-07 16:48:25 +0000
4@@ -0,0 +1,17 @@
5+#!/bin/bash
6+
7+# Our expected MOJO_STAGE would be something like 'charm-testing/postgresql' so
8+# this would be set to 'postgresql'
9+CHARM=${MOJO_STAGE##*/}
10+# If we have a charm directory already, let's remove it in case the new
11+# version is a different type (bzr, git, charmstore, etc.)
12+cd ${MOJO_BUILD_DIR}
13+[ -d ${CHARM} ] && rm -rf ${CHARM}
14+# Now create a collect file we can use in the next phase to download the new
15+# charm we want to test
16+cd ${MOJO_SPEC_DIR}/${MOJO_STAGE}
17+echo "${CHARM} ${UPGRADE_CHARM}" > collect-upgrade
18+
19+# And also create the jenkins .deb which is bundled with this charm
20+echo "jenkins/files @" >> collect-upgrade
21+echo "jenkins/files/jenkins.deb http://archive.admin.canonical.com/other/jenkins-stable/jenkins2_latest_all.deb;overwrite=True" >> collect-upgrade

Subscribers

People subscribed via source and target branches

to all changes: