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

Commit

Permalink
Tweaking quote syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypoulz committed Aug 27, 2018
1 parent 712eb50 commit 67bd1c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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,7 +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']]
"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 67bd1c4

Please sign in to comment.