0
    agent { label 'jenkins-slave' }

    environment {
        CRED_REPO_URL = 'gitcredentials.git'
        SERVICES_REPO_URL = 'gitrepo'
        ENV_NAME = 'dev_dev'
        REGION = 'ap-south-1'
    }

    parameters {
        choice name: 'ENV', choices: ['dev', 'qa'], description: 'Choose an env'
        choice name: 'DIRS', choices: choiceArray, description: 'Choose a dir from branch'
        gitParameter branchFilter: 'origin/(.*)', 
                    tagFilter: '*', 
                    defaultValue: 'main', 
                    name: 'BRANCH', 
                    type: 'BRANCHTAG', 
                    quickFilterEnabled: 'true',
                    description: 'branch to execute',
                    useRepository: 'gitrepo'
    }
}

facing some issue.so need to assist for this while select the branch in jenkins it has to shown that repo directories as a drop down.

Tom
  • 1
  • 1
  • Anyone assist for this need to view directories form github repo while select the branch in jenkins build with parameters. – Tom Sep 19 '22 at 17:28

0 Answers0