Skip to content

Commit

Permalink
correctly pass foreman_expected_version to pipelines
Browse files Browse the repository at this point in the history
Fixes: f35f1a3
  • Loading branch information
evgeni committed May 27, 2024
1 parent 95f701e commit 8e047b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centos.org/pipelines/lib/foremanDuffyJob.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pipeline {
def username = "pipe-${os}-${action}"
def boxname = "${username}@duffy_box"
branches[name] = {
def playBook = pipelineVars(action: action, type: params.type, version: params.version, os: os, extra_vars: ['expected_version': params.expected_version ?: ''])
def playBook = pipelineVars(action: action, type: params.type, version: params.version, os: os, extra_vars: ['foreman_expected_version': params.expected_version ?: ''])
def extra_vars = buildExtraVars(extraVars: playBook['extraVars'])
def playbooks = duffy_ssh("ls forklift/pipelines/${playBook['pipeline']}", boxname, './', true)
playbooks = playbooks.split("\n")
Expand Down Expand Up @@ -118,7 +118,7 @@ pipeline {
def username = "pipe-${os}-${action}"
def boxname = "${username}@duffy_box"
branches[name] = {
def playBook = pipelineVars(action: action, type: params.type, version: params.version, os: os, extra_vars: ['expected_version': params.expected_version ?: ''])
def playBook = pipelineVars(action: action, type: params.type, version: params.version, os: os, extra_vars: ['foreman_expected_version': params.expected_version ?: ''])
def extra_vars = buildExtraVars(extraVars: playBook['extraVars'])
try {
duffy_ssh("source otel_env && cd forklift && ansible-playbook playbooks/collect_debug.yml --limit '${playBook['boxes'].join(',')}' ${extra_vars}", boxname, './')
Expand Down

0 comments on commit 8e047b3

Please sign in to comment.