Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
892d7426
Commit
892d7426
authored
Mar 13, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escape dollar signs.
parent
a2c387f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/build-ami/config.xml.j2
+13
-13
No files found.
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/build-ami/config.xml.j2
View file @
892d7426
...
...
@@ -155,43 +155,43 @@
<hudson.tasks.Shell>
<command>
#!/bin/bash -x
if [[(
"
$play
"
==
""
)]]; then
if [[(
"
\
$play
"
==
""
)]]; then
echo
"
No Play Specified. Nothing to Do.
"
exit 0
fi
if [ ! -d $WORKSPACE/virtualenv ]; then
virtualenv --system-site-packages $WORKSPACE/virtualenv
if [ ! -d
\
$WORKSPACE/virtualenv ]; then
virtualenv --system-site-packages
\
$WORKSPACE/virtualenv
fi
export PYTHONUNBUFFERED=1
export PIP_DOWNLOAD_CACHE=$WORKSPACE/pip-cache
export PIP_DOWNLOAD_CACHE=
\
$WORKSPACE/pip-cache
. $WORKSPACE/virtualenv/bin/activate
.
\
$WORKSPACE/virtualenv/bin/activate
cd configuration
pip install -r requirements.txt
cd util/vpc-tools/
echo
"
$refs
"
>
/var/tmp/
$BUILD_ID-refs.yml
cat /var/tmp/$BUILD_ID-refs.yml
echo
"
\$refs
"
>
/var/tmp/\
$BUILD_ID-refs.yml
cat /var/tmp/
\
$BUILD_ID-refs.yml
echo
"
\$vars
"
>
/var/tmp/$BUILD_ID-extra-vars.yml
cat /var/tmp/$BUILD_ID-extra-vars.yml
echo
"
\$vars
"
>
/var/tmp/
\
$BUILD_ID-extra-vars.yml
cat /var/tmp/
\
$BUILD_ID-extra-vars.yml
python -u abbey.py -p
$play -t c1.medium -d $deployment -e $environment -i {{jenkins_home}}/.ssh/id_rsa -b $base_ami --vars /var/tmp/$BUILD_ID-extra-vars.yml --refs /var/tmp/$BUILD_ID-refs.yml -j $release_id --mongo-uri $mongo_uri --mongo-deployment-collection $deployment --mongo-db devops --configuration-version $configuration --configuration-secure-version
$configuration_secure -k {{JENKINS_ADMIN_EC2_KEY}} --configuration-secure-repo
"
{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO}}
"
</command>
python -u abbey.py -p
\$play -t c1.medium -d \$deployment -e \$environment -i {{jenkins_home}}/.ssh/id_rsa -b \$base_ami --vars /var/tmp/\$BUILD_ID-extra-vars.yml --refs /var/tmp/\$BUILD_ID-refs.yml -j \$release_id --mongo-uri \$mongo_uri --mongo-deployment-collection \$deployment --mongo-db devops --configuration-version \$configuration --configuration-secure-version \
$configuration_secure -k {{JENKINS_ADMIN_EC2_KEY}} --configuration-secure-repo
"
{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO}}
"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
#!/bin/bash -x
if [[(
"
$play
"
==
""
)]]; then
if [[(
"
\
$play
"
==
""
)]]; then
echo
"
No Play Specified. Nothing to Do.
"
exit 0
fi
rm /var/tmp/$BUILD_ID-extra-vars.yml
rm /var/tmp/$BUILD_ID-refs.yml
</command>
rm /var/tmp/
\
$BUILD_ID-extra-vars.yml
rm /var/tmp/
\
$BUILD_ID-refs.yml
</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment