In addition to below, I wrote groovy as below for active choice parameter 
selection in Jenkins job but this is not working, can someone please help.

import groovy.json.JsonSlurper
try {
def command = ["curl", "-u", "C1111A:Password", "-X", "POST", "-H", 
"Content-Type: text/plain", "-k", 
"";, "-d", 
artifact = new JsonSlurper().parseText(command)
//def jsonList = new JsonSlurper().parseText(command)
List<String> version = new ArrayList<String>()
for (i = 0; i <; i++) 
return version
catch (Exception e) {
print "Problem fetching the version"


On Thursday, 14 November 2019 21:47:00 UTC+5:30, Vikrant Kaushik wrote:
> Hi All,
> I'm struggling to get the dynamically list of the Artifact Version in 
> jenkins job parameter, I'm using Jfrog Artifactory as a remote repo.I'm 
> trying with Active choice parameter but don't know how to get version from 
> Artifactory.
> Any help would be appreciated. 
> regards
> Vikrant

You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit

Reply via email to