[JIRA] (JENKINS-57011) Git parameter 'Parameter Type ' not set correctly

3 views
Skip to first unread message

robin.jansohn@zf.com (JIRA)

unread,
Apr 15, 2019, 9:58:02 AM4/15/19
to jenkinsc...@googlegroups.com
Robin Jansohn created an issue
 
Jenkins / Bug JENKINS-57011
Git parameter 'Parameter Type ' not set correctly
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 2019-04-15 13:57
Environment: Jenkins ver. 2.164.2
Job DSL 1.72
Priority: Minor Minor
Reporter: Robin Jansohn

I'm trying to setup pipeline jobs with the Job DSL plugin but it seems to fail to set the Parameter Type correctly to Branch or Tag and sets it to Branch instead.

pipelineJob('Test-DSL-Pipeline') {
    parameters {
        gitParameterDefinition {
            name('GIT_BRANCH')
            type('BRANCH_TAG')
            defaultValue('origin/master')
            description('Name of the branch or tag to check out')
            branch('')
            branchFilter('.*')
            tagFilter('*')
            sortMode('DESCENDING_SMART')
            selectedValue('DEFAULT')
            useRepository('')
            quickFilterEnabled(true)
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

robin.jansohn@zf.com (JIRA)

unread,
Apr 15, 2019, 10:02:01 AM4/15/19
to jenkinsc...@googlegroups.com
Robin Jansohn updated an issue
Change By: Robin Jansohn
Environment:
Jenkins ver. 2.164.2
Job DSL 1.72

Git Parameter Plug-In 0.9.10

mail@daniel-spilker.com (JIRA)

unread,
Apr 25, 2019, 5:36:02 AM4/25/19
to jenkinsc...@googlegroups.com
Daniel Spilker updated Bug JENKINS-57011
 

You need to set the value to PT_BRANCH_TAG.

To find the correct values, the approach is to configure the job manually and then look at the generated configuration, e.g. at http://localhost:8081/job/Test-DSL-Pipeline/config.xml.

Change By: Daniel Spilker
Status: Open Fixed but Unreleased
Resolution: Not A Defect

mail@daniel-spilker.com (JIRA)

unread,
Mar 11, 2020, 9:06:02 AM3/11/20
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages