Merge qa-jenkins-jobs:upgrade-eol-releases into qa-jenkins-jobs:master

Proposed by Paride Legovini
Status: Merged
Merged at revision: 5695839186c9c6638de95ff1b15e20abd771c932
Proposed branch: qa-jenkins-jobs:upgrade-eol-releases
Merge into: qa-jenkins-jobs:master
Diff against target: 26 lines (+11/-1)
1 file modified
jobs/auto-upgrade-testing/jobs.yaml (+11/-1)
Reviewer Review Type Date Requested Status
Brian Murray Approve
Review via email: mp+426195@code.launchpad.net

Commit message

upgrade tests: support EOL releases

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) :
review: Approve
Revision history for this message
Brian Murray (brian-murray) wrote :

This looks good to me, thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/jobs/auto-upgrade-testing/jobs.yaml b/jobs/auto-upgrade-testing/jobs.yaml
index 998dc33..44bbf10 100755
--- a/jobs/auto-upgrade-testing/jobs.yaml
+++ b/jobs/auto-upgrade-testing/jobs.yaml
@@ -62,10 +62,20 @@
62 }}62 }}
63 EOF63 EOF
6464
65 # Handle EOL releases
66 RELEASE_FROM=${{RELEASE%%-*}}
67 if ! {{ ubuntu-distro-info --supported ; ubuntu-distro-info --supported-esm ; }} | grep -q "$RELEASE_FROM"; then
68 echo "deb http://old-releases.ubuntu.com/ubuntu ${{RELEASE_FROM}} main universe restricted multiverse" > old-releases-sources.list
69 echo "deb http://old-releases.ubuntu.com/ubuntu ${{RELEASE_FROM}}-updates main universe restricted multiverse" >> old-releases-sources.list
70 echo "deb http://old-releases.ubuntu.com/ubuntu ${{RELEASE_FROM}}-security main universe restricted multiverse" >> old-releases-sources.list
71 AUTOPKGTEST_APT_SOURCES_FILE=$(realpath old-releases-sources.list)
72 export AUTOPKGTEST_APT_SOURCES_FILE
73 fi
74
65 cd auto-upgrade-testing75 cd auto-upgrade-testing
6676
67 set +e77 set +e
68 sudo python3 -m upgrade_testing.command_line -c $PROFILE --provision --results-dir "$WORKSPACE/{profile}/"78 sudo --preserve-env=AUTOPKGTEST_APT_SOURCES_FILE python3 -m upgrade_testing.command_line -c $PROFILE --provision --results-dir "$WORKSPACE/{profile}/"
69 EXITSTATUS=$?79 EXITSTATUS=$?
70 sudo chown -R $USER:$USER "$WORKSPACE"80 sudo chown -R $USER:$USER "$WORKSPACE"
71 cp $WORKSPACE/{profile}/*/artifacts/upgrade_run/junit.xml $WORKSPACE/junit.xml81 cp $WORKSPACE/{profile}/*/artifacts/upgrade_run/junit.xml $WORKSPACE/junit.xml

Subscribers

People subscribed via source and target branches

to all changes: