jenkinsci / jenkinsci/java-client-api
Getting Build from QueueReference
- 主要言語
- Java
- スター
- 913
- フォーク
- 466
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
コントリビューションガイド
調査の方向性
レポートで言及されているエントリポイント JenkinsServer.getQueueItem(queue)、QueueItem、getBuild(item) を確認してください。キューに入れられたビルドがまだ実行中の場合と、完了した後の場合に NullPointerException を再現してください。完了の条件は、クライアントが完了したビルドとそのアーティファクトを取得するための、文書化された信頼できる方法を提供するか、それができない理由を明確に報告することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100