We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My job has many builds, but I got null when call jenkinsServer.getJob("Folder1/Folder2/jobName").getAllBuilds().
jenkinsServer.getJob("Folder1/Folder2/jobName").getAllBuilds()
Then I check the source code, and find:
List<Build> builds = client.get(path + "job/" + EncodingUtils.encode(this.getName()) + "?tree=allBuilds[number[*],url[*],queueId[*]]", AllBuilds.class).getAllBuilds();
The problem is this.getName(). My job's full path is : /job/Folder1/job/Folder2/job/jobName
this.getName()
/job/Folder1/job/Folder2/job/jobName
But this.getName() only returns jobName.
So I can get correct results with this:
List<Build> builds = client.get("/job/Folder1/job/Folder2/job/jobName" + "?tree=allBuilds[number[*],url[*],queueId[*]]", AllBuilds.class).getAllBuilds();
The text was updated successfully, but these errors were encountered:
I have the same problem, do you have any good solution?
Sorry, something went wrong.
we can define our current jobs path in a static or a final variable before instantiating the this.getName(). Once try this approach
No branches or pull requests
My job has many builds, but I got null when call
jenkinsServer.getJob("Folder1/Folder2/jobName").getAllBuilds()
.Then I check the source code, and find:
The problem is
this.getName()
. My job's full path is :/job/Folder1/job/Folder2/job/jobName
But this.getName() only returns jobName.
So I can get correct results with this:
The text was updated successfully, but these errors were encountered: