[JIRA] (JENKINS-57652) Git Parameters returning default and no error logged

1 view
Skip to first unread message

philrumble@hotmail.com (JIRA)

unread,
May 23, 2019, 11:52:01 PM5/23/19
to jenkinsc...@googlegroups.com
Phil Rumble created an issue
 
Jenkins / Bug JENKINS-57652
Git Parameters returning default and no error logged
Issue Type: Bug Bug
Assignee: Boguslaw Klimas
Attachments: image-2019-05-24-11-44-43-250.png
Components: git-parameter-plugin
Created: 2019-05-24 03:51
Environment: Jenkins ver. 2.164.3 all plugins up to date centos7
Priority: Blocker Blocker
Reporter: Phil Rumble

I get intermitten results from the gitParameter option.

Sometime I get

no list, and the default is chosen

a partial list of  branches

a full list of branches (rarely)

This is what is in my pipeline script 

gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH_NAME', type: 'PT_BRANCH'

stage('Checkout') {
    steps {
        dir ('code') {
            git(branch: "${params.BRANCH_NAME}", url: 'XXXXXX')
        }
    }
}

 

Is there a way to fix this or can we allow users to enter a branch name manually?

My scenario is I need the jobs definition to be stored in  git, hence I am using pipeline jobs stored as JenkinsFiles.

multibranch pipeline job does not suit as these jobs are to be triggered by users, and/or cron.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages