Merge lp:~psivaa/ubiquity/update-ubiquity-tests into lp:~canonical-ci-engineering/ubiquity/ubiquity-ci-testing

Proposed by Para Siva
Status: Merged
Merged at revision: 6268
Proposed branch: lp:~psivaa/ubiquity/update-ubiquity-tests
Merge into: lp:~canonical-ci-engineering/ubiquity/ubiquity-ci-testing
Diff against target: 46 lines (+17/-1)
2 files modified
autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml (+13/-0)
autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml (+4/-1)
To merge this branch: bzr merge lp:~psivaa/ubiquity/update-ubiquity-tests
Reviewer Review Type Date Requested Status
Paul Larson Approve
Review via email: mp+250307@code.launchpad.net

Commit message

Update the local ubiquity tests for ever test run.

Description of the change

This is to update the ubiquity tests every time the tests get executed.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

This seems to work fine for me as long as we make sure to pull the initial version of this branch as the jenkins user and not as root. I've made that correction in the charm, so we're good to go.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml'
--- autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml 2013-12-20 08:15:37 +0000
+++ autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml 2015-02-19 13:39:18 +0000
@@ -30,6 +30,19 @@
30 <triggers class="vector"/>30 <triggers class="vector"/>
31 <concurrentBuild>false</concurrentBuild>31 <concurrentBuild>false</concurrentBuild>
32 <builders>32 <builders>
33 <hudson.tasks.Shell>
34 <command>#!/bin/bash
35
36BRANCH=&quot;lp:ubiquity&quot;
37BZRDIR=`echo &quot;$BRANCH&quot; | awk -F: &apos;{ print $(NF) }&apos;`
38if [ -d $JENKINS_HOME/$BZRDIR ]; then
39 cd $JENKINS_HOME/$BZRDIR
40 bzr pull
41else
42 bzr branch ${BRANCH} $JENKINS_HOME/${BZRDIR}
43fi
44</command>
45 </hudson.tasks.Shell>
33 <hudson.plugins.parameterizedtrigger.TriggerBuilder>46 <hudson.plugins.parameterizedtrigger.TriggerBuilder>
34 <configs>47 <configs>
35 <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>48 <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
3649
=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml'
--- autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml 2015-02-17 16:46:26 +0000
+++ autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml 2015-02-19 13:39:18 +0000
@@ -49,6 +49,9 @@
49 <command>#!/bin/bash49 <command>#!/bin/bash
50[ -n &quot;$WORKSPACE&quot; ] &amp;&amp; rm -Rf $WORKSPACE/*50[ -n &quot;$WORKSPACE&quot; ] &amp;&amp; rm -Rf $WORKSPACE/*
5151
52BRANCH=&quot;lp:ubiquity&quot;
53BZRDIR=`echo &quot;$BRANCH&quot; | awk -F: &apos;{ print $(NF) }&apos;`
54
52RELEASE=$(distro-info -d||distro-info -s)55RELEASE=$(distro-info -d||distro-info -s)
53VARIANT={{ variant }}56VARIANT={{ variant }}
54ISO=$JENKINS_HOME/isos/{{ flavor }}/${RELEASE}-${VARIANT}-${ARCH}.iso57ISO=$JENKINS_HOME/isos/{{ flavor }}/${RELEASE}-${VARIANT}-${ARCH}.iso
@@ -61,7 +64,7 @@
6164
62echo &quot;I: Starting test $TESTNAME with image $ISO&quot;65echo &quot;I: Starting test $TESTNAME with image $ISO&quot;
63FULLNAME=&quot;ubiquity_autopilot_tests.tests.${TESTNAME}&quot;66FULLNAME=&quot;ubiquity_autopilot_tests.tests.${TESTNAME}&quot;
64$JENKINS_HOME/ubiquity-autopilot-runner/run-ubiquity-test -t $FULLNAME $ISO</command>67$JENKINS_HOME/$BZRDIR/autopilot/ubiquity-autopilot-runner/run-ubiquity-test -t $FULLNAME $ISO</command>
65 </hudson.tasks.Shell>68 </hudson.tasks.Shell>
66 </builders>69 </builders>
67 <publishers>70 <publishers>

Subscribers

People subscribed via source and target branches