•  
      request #9425 Workflow action > CI Build > No parameter
    Infos
    #9425
    Peter Struck (p3t3rstruck)
    2016-08-29 18:20
    2016-08-29 10:44
    9702
    Details
    Workflow action > CI Build > No parameter

    When defining an CI Job action you get the info: 

    Tuleap will automatically pass following parameters to the job:

    • userId: Identifier (integer) of Tuleap user who made the transition
    • projectId: Identifier (integer) of the current project (ie. 116)
    • trackerId: Identifier (integer) of the current tracker (ie. 69)
    • artifactId: Identifier (integer) of the artifact where the transition happens
    • triggerFieldValue: Value (string) of current transition target (ie. Building)

     

    I've already tried build with  and without parameters option in jenkins

    • http://server:8080/view/CBASEapps/job/ca_itemlist/buildWithParameters?token=1234
    • http://server:8080/view/CBASEapps/job/ca_itemlist/

     

    How these parameters will be added to the request: URL params (?userId=XXX) or in Body?

    I cannot get the values inside the jobs. My script:

    echo "Values: $userId $projectId $trackerId $artifactId $triggerFieldValue"

    Continuous Integration
    Empty
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2016-08-29
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    the only way it worked was defining a parameter json which includes all parameters passed by.
    The parameter inside there won't be parsed ...
    But I'm fine with that thx
    User avatar

    You need to defined the parameter in "Parametrized job" section of your job on Jenkins (eg UserId, string).