Jenkins jobs builder job-group parameter substitution not working

Bug #1298568 reported by Gabriele Cerami
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
In Progress
Undecided
Unassigned

Bug Description

Documentation states that, when defining a job-group "The jobs: list can also allow for specifying job-specific substitutions "

I'm using version 0.7.0.18.g72c02d4 and (copying the doc example) this does not work for me:

- job-template:
    name: '{name}-build'
    description: |
        {pipeline-next}

- job-template:
    name: '{name}-upload'

- job-group:
    name: python-jobs
    jobs:
      - '{name}-build':
          pipeline-next: '{name}-upload'
      - '{name}-upload':
          pipeline-next: ''

- project:
    name: foo
    jobs:
      - python-jobs

when I test this configuration the output XML contains only

 <project>
  <actions/>
  <description>{name}-upload

and not the expected foo-upload

Tags: jjb
Khai Do (zaro0508)
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
Revision history for this message
Khai Do (zaro0508) wrote :

The example in the doc is misleading. JJB currently will do substitution on the jobs 'list' but not on the parameters of the 'list'. Substitution on job list parameters would be a new feature. I think i will change the documentation so it's less misleading to users. I will leave this issue open as a feature request.

Changed in openstack-ci:
status: New → Confirmed
assignee: Khai Do (zaro0508) → nobody
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
status: Confirmed → In Progress
Khai Do (zaro0508)
Changed in openstack-ci:
assignee: Khai Do (zaro0508) → nobody
Khai Do (zaro0508)
tags: added: jjb
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
Khai Do (zaro0508)
Changed in openstack-ci:
assignee: Khai Do (zaro0508) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to jenkins-job-builder (master)

Reviewed: https://review.openstack.org/96309
Committed: https://git.openstack.org/cgit/openstack-infra/jenkins-job-builder/commit/?id=2d1494d3a3e996da8d734fbc2e6b209c2d3ba477
Submitter: Jenkins
Branch: master

commit 2d1494d3a3e996da8d734fbc2e6b209c2d3ba477
Author: Khai Do <email address hidden>
Date: Wed May 28 16:15:16 2014 -0700

    remove misleading jjb example

    Change I059f38d0aa8a8947aaac75e0ddb34d392063ece3 added support for
    passing parameters to jobs in groups but not for variable substitution
    on those parameters. Substitution on job list parameters would
    be a new feature. This change removes a misleading parameter subsitution
    example.

    Partial-bug: #1298568
    Change-Id: I18e28bb622f0473f049963ce6dcf6c4efd11dc2c

Revision history for this message
Peter Eisentraut (petere) wrote :

The current documentation for the "Job Group" facility no longer makes use of any job-group stanza. The code example is basically just an combination of job template and project, nothing about job groups.

Revision history for this message
Khai Do (zaro0508) wrote :

Peter, not sure what you mean. The JJB doc does have an example for job-group. http://ci.openstack.org/jenkins-job-builder/definition.html#job-group

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers