[JIRA] (JENKINS-60462) choices variable in choice parameter

1 view
Skip to first unread message

burtsevyg@mail.ru (JIRA)

unread,
Dec 12, 2019, 10:45:03 AM12/12/19
to jenkinsc...@googlegroups.com
Yuriy Burtsev created an issue
 
Jenkins / Bug JENKINS-60462
choices variable in choice parameter
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-12-12 15:44
Environment: Jenkins 2.190.3
Priority: Minor Minor
Reporter: Yuriy Burtsev

Why list of choice update only when I push something in the git repo?
How update parameter each time when I refresh page in a browser in declarative pipeline?

@Library('something')
import com.something.MySomething

def list = MySomething.getList()

pipeline {
    agent any
    parameters {
        choice(name: 'CHOICE', choices: list, description: 'Pick something')
    }
    stages {
        stage('Example') {
            steps {
                echo "Choice: ${params.CHOICE}"
            }
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages