Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Attempting to get hook working via tweaking syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypoulz committed Aug 26, 2018
1 parent aebf291 commit 712eb50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/com/redhat/multiarch/ci/provisioner/Provisioner.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Provisioner {
templateData.job_group = config.jobgroup
templateData.hostrequires = config.hostrequires
templateData.hooks = [postUp: [connectToMaster: config.runOnSlave]]
templateData.extra_vars = '{' +
templateData.extra_vars = '\'{' +
'"rpm_key_imports":[],' +
'"jenkins_master_repositories":[],' +
'"jenkins_master_download_repositories":[],' +
Expand All @@ -178,8 +178,8 @@ class Provisioner {
'"jswarm_version":"3.9",' +
'"jswarm_filename":"swarm-client-{{ jswarm_version }}.jar",' +
'"jswarm_extra_args":"' + "${config.jswarmExtraArgs}" + '",' +
'"jenkins_slave_repositories":[{"name":"epel","mirrorlist":"https://mirrors.fedoraproject.org/metalink?arch=$basearch&repo=epel-7"}]' +
'}'
'"jenkins_slave_repositories":[{"name":"epel","mirrorlist":\"https://mirrors.fedoraproject.org/metalink?arch=$basearch&repo=epel-7\"}]' +
'}\''

def templateDataJson = JsonOutput.toJson(templateData)
templateDataJson
Expand Down Expand Up @@ -207,6 +207,7 @@ class Provisioner {
"jswarm_version":"3.9",
"jswarm_filename":"swarm-client-{{ jswarm_version }}.jar",
"jswarm_extra_args":"${config.jswarmExtraArgs}",
"jenkins_slave_repositories":[["name":"epel","mirrorlist":'https://mirrors.fedoraproject.org/metalink?arch=$basearch&repo=epel-7']]
]
def extraVarsJson = JsonOutput.toJson(extraVars)
extraVarsJson
Expand Down

0 comments on commit 712eb50

Please sign in to comment.