jenkinsci / jenkinsci/java-client-api
Getting Build from QueueReference
- Lingua principale
- Java
- Stelle
- 913
- Fork
- 466
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi All¡
First of all sorru for my ignorance, I´m new dealing with jenkins-api. I´m going to explain my doubt:
I have a process that call jenkins in order to launch a build:
` JenkinsServer jenkins = new JenkinsServer(new URI(
"https://jenkins"), "xxxxx",
"xxxxx");
Map params = new HashedMap();
params.put("svnPath","xxxxxx@44117");
QueueReference queue = jenkins.getJob("JARGENERATION").build(params);`
Now I´ve to fetch the artifact and I´m trying to get it by:
`QueueItem item = jenkins.getQueueItem(queue);
BuildWithDetails build = jenkins.getBuild(item).details();`
I guest that the problem is that the build is in process, but by debugging always get NullPointer inside the API.
Some workround of how to fetch the artifact from a build recently launched?
Thanks in advance
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.