Commit 233e58d5 by Han Su Kim

adding spaces to vars; addressing leaving loop expressions bare error

parent cebbe726
...@@ -80,15 +80,20 @@ jenkins_admin_debian_pkgs: ...@@ -80,15 +80,20 @@ jenkins_admin_debian_pkgs:
jenkins_admin_gem_pkgs: jenkins_admin_gem_pkgs:
# for generating status.edx.org # for generating status.edx.org
- { name: sass, version: "3.2.4" } - name: sass,
version: "3.2.4"
jenkins_admin_redhat_pkgs: [] jenkins_admin_redhat_pkgs: []
jenkins_admin_plugins: jenkins_admin_plugins:
- { name: "greenballs", version: "1.14" } - name: "greenballs"
- { name: "rebuild", version: "1.21" } version: "1.14"
- { name: "build-user-vars-plugin", version: "1.1" } - name: "rebuild"
- { name: "build-token-root", version: "1.1" } version: "1.21"
- name: "build-user-vars-plugin"
version: "1.1"
- name: "build-token-root",
version: "1.1"
jenkins_admin_jobs: jenkins_admin_jobs:
- 'backup-jenkins' - 'backup-jenkins'
......
...@@ -66,17 +66,17 @@ ...@@ -66,17 +66,17 @@
- name: configure s3 plugin - name: configure s3 plugin
template: > template: >
src="./{{jenkins_home}}/hudson.plugins.s3.S3BucketPublisher.xml.j2" src="./{{ jenkins_home }}/hudson.plugins.s3.S3BucketPublisher.xml.j2"
dest="{{jenkins_home}}/hudson.plugins.s3.S3BucketPublisher.xml" dest="{{ jenkins_home }}/hudson.plugins.s3.S3BucketPublisher.xml"
owner={{jenkins_user}} owner={{ jenkins_user }}
group={{jenkins_group}} group={{ jenkins_group }}
mode=0644 mode=0644
- name: create the ssh directory - name: create the ssh directory
file: > file: >
path={{jenkins_home}}/.ssh path={{ jenkins_home }}/.ssh
owner={{jenkins_user}} owner={{ jenkins_user }}
group={{jenkins_group}} group={{ jenkins_group }}
mode=0700 mode=0700
state=directory state=directory
...@@ -89,34 +89,34 @@ ...@@ -89,34 +89,34 @@
- name: drop the secure credentials - name: drop the secure credentials
copy: > copy: >
content="{{ JENKINS_ADMIN_GIT_KEY }}" content="{{ JENKINS_ADMIN_GIT_KEY }}"
dest={{jenkins_home}}/.ssh/id_rsa dest={{ jenkins_home }}/.ssh/id_rsa
owner={{jenkins_user}} owner={{ jenkins_user }}
group={{jenkins_group}} group={{ jenkins_group }}
mode=0600 mode=0600
- name: create job directory - name: create job directory
file: > file: >
path="{{jenkins_home}}/jobs" path="{{ jenkins_home }}/jobs"
owner="{{jenkins_user}}" owner="{{ jenkins_user }}"
group="{{jenkins_group}}" group="{{ jenkins_group }}"
mode=0755 mode=0755
state=directory state=directory
- name: create admin job directories - name: create admin job directories
file: > file: >
path="{{jenkins_home}}/jobs/{{item}}" path="{{ jenkins_home }}/jobs/{{ item }}"
owner={{jenkins_user}} owner={{ jenkins_user }}
group={{jenkins_group}} group={{ jenkins_group }}
mode=0755 mode=0755
state=directory state=directory
with_items: jenkins_admin_jobs with_items: jenkins_admin_jobs
- name: create admin job config files - name: create admin job config files
template: > template: >
src="./{{jenkins_home}}/jobs/{{item}}/config.xml.j2" src="./{{ jenkins_home }}/jobs/{{ item }}/config.xml.j2"
dest="{{jenkins_home}}/jobs/{{item}}/config.xml" dest="{{ jenkins_home }}/jobs/{{ item }}/config.xml"
owner={{jenkins_user}} owner={{ jenkins_user }}
group={{jenkins_group}} group={{ jenkins_group }}
mode=0644 mode=0644
with_items: jenkins_admin_jobs with_items: jenkins_admin_jobs
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl plugin="s3@0.5"> <hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl plugin="s3@0.5">
<profiles> <profiles>
<hudson.plugins.s3.S3Profile> <hudson.plugins.s3.S3Profile>
<name>{{JENKINS_ADMIN_S3_PROFILE.name}}</name> <name>{{ JENKINS_ADMIN_S3_PROFILE.name }}</name>
<accessKey>{{JENKINS_ADMIN_S3_PROFILE.access_key}}</accessKey> <accessKey>{{ JENKINS_ADMIN_S3_PROFILE.access_key }}</accessKey>
<secretKey>{{JENKINS_ADMIN_S3_PROFILE.secret_key}}</secretKey> <secretKey>{{ JENKINS_ADMIN_S3_PROFILE.secret_key }}</secretKey>
</hudson.plugins.s3.S3Profile> </hudson.plugins.s3.S3Profile>
</profiles> </profiles>
</hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl> </hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl>
...@@ -44,7 +44,7 @@ rm -rf $BUILD_ID ...@@ -44,7 +44,7 @@ rm -rf $BUILD_ID
</builders> </builders>
<publishers> <publishers>
<hudson.plugins.s3.S3BucketPublisher plugin="s3@0.5"> <hudson.plugins.s3.S3BucketPublisher plugin="s3@0.5">
<profileName>{{JENKINS_ADMIN_S3_PROFILE.name}}</profileName> <profileName>{{ JENKINS_ADMIN_S3_PROFILE.name }}</profileName>
<entries> <entries>
<hudson.plugins.s3.Entry> <hudson.plugins.s3.Entry>
<bucket>edx-jenkins-backups/{{JENKINS_ADMIN_NAME}}</bucket> <bucket>edx-jenkins-backups/{{JENKINS_ADMIN_NAME}}</bucket>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<hudson.plugins.git.UserRemoteConfig> <hudson.plugins.git.UserRemoteConfig>
<name></name> <name></name>
<refspec></refspec> <refspec></refspec>
<url>{{JENKINS_ADMIN_CONFIGURATION_REPO}}</url> <url>{{ JENKINS_ADMIN_CONFIGURATION_REPO }}</url>
</hudson.plugins.git.UserRemoteConfig> </hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs> </userRemoteConfigs>
<branches> <branches>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<hudson.plugins.git.UserRemoteConfig> <hudson.plugins.git.UserRemoteConfig>
<name></name> <name></name>
<refspec></refspec> <refspec></refspec>
<url>{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO}}</url> <url>{{ JENKINS_ADMIN_CONFIGURATION_SECURE_REPO }}</url>
</hudson.plugins.git.UserRemoteConfig> </hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs> </userRemoteConfigs>
<branches> <branches>
...@@ -168,10 +168,10 @@ cd util/vpc-tools/ ...@@ -168,10 +168,10 @@ cd util/vpc-tools/
echo "$refs" > /var/tmp/$BUILD_ID-refs.yml echo "$refs" > /var/tmp/$BUILD_ID-refs.yml
cat /var/tmp/$BUILD_ID-refs.yml cat /var/tmp/$BUILD_ID-refs.yml
echo "$vars" > /var/tmp/$BUILD_ID-extra-vars.yml echo {{ vars }}> /var/tmp/$BUILD_ID-extra-vars.yml
cat /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 /edx/var/jenkins/.ssh/id_rsa -b $base_ami --vars /var/tmp/$BUILD_ID-extra-vars.yml --refs /var/tmp/$BUILD_ID-refs.yml -c $BUILD_NUMBER --configuration-version $configuration --configuration-secure-version $configuration_secure -k {{JENKINS_ADMIN_EC2_KEY}} --configuration-secure-repo &quot;{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO}}&quot; python -u abbey.py -p $play -t c1.medium -d $deployment -e $environment -i /edx/var/jenkins/.ssh/id_rsa -b $base_ami --vars /var/tmp/$BUILD_ID-extra-vars.yml --refs /var/tmp/$BUILD_ID-refs.yml -c $BUILD_NUMBER --configuration-version $configuration --configuration-secure-version $configuration_secure -k {{ JENKINS_ADMIN_EC2_KEY }} --configuration-secure-repo &quot;{{ JENKINS_ADMIN_CONFIGURATION_SECURE_REPO }}&quot;
</command> </command>
<ignoreExitCode>false</ignoreExitCode> <ignoreExitCode>false</ignoreExitCode>
</jenkins.plugins.shiningpanda.builders.VirtualenvBuilder> </jenkins.plugins.shiningpanda.builders.VirtualenvBuilder>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment