~vila/uci-engine/config

« back to all changes in this revision

Viewing changes to charms/precise/lander-jenkins/templates/jobs/lander_ppa_assigner.xml

  • Committer: Vincent Ladeuil
  • Date: 2014-04-10 19:09:02 UTC
  • mfrom: (239.1.187 uci-engine)
  • Revision ID: vila+ci@canonical.com-20140410190902-0zwky6u3aqtjrhrd
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
[ -d results ] && rm -rf results
36
36
mkdir results
37
37
 
38
 
# Setup the input parameters
39
 
echo $request_parameters > params.json
 
38
# Setup the input parameters, must pass through sed to properly escape backslashes
 
39
echo $request_parameters | sed 's/\\/\\\\/g' > params.json
 
40
 
 
41
#strip the ts_url out of the request params for the archiver
 
42
cat > child.params <<EOF
 
43
ts_url=$(cat params.json | grep -Po '(?<=ts_url": )"http:.*?"' | sed 's/"//g')
 
44
EOF
40
45
 
41
46
/srv/lander_jenkins_sub/lander/bin/lander_service_wrapper.py --input-file params.json --output-file results/params.json --service ppa_assigner]]></command>
42
47
    </hudson.tasks.Shell>
55
60
source_job=$JOB_NAME
56
61
source_url=$BUILD_URL</properties>
57
62
            </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
 
63
            <hudson.plugins.parameterizedtrigger.FileBuildParameters>
 
64
              <propertiesFile>child.params</propertiesFile>
 
65
              <failTriggerOnMissing>true</failTriggerOnMissing>
 
66
            </hudson.plugins.parameterizedtrigger.FileBuildParameters>
58
67
          </configs>
59
68
          <projects>lander_archiver</projects>
60
69
          <condition>ALWAYS</condition>