-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
Jenkins Download Artifacts Multibranch Pipeline Query Failure #10691
Comments
Any update on this bug would be appreciated. |
I am looking into it. |
We have pushed a fix for this. As you pointed out selectMaxOf function was having trouble dealing with null values. This is fixed here This might take a week or two to get deployed to production. Please wait for Jenkins download artifact task version greater than 1.154.0 (1.1.54.1 or 1.155.0...) |
Thank you very much for this fix! |
Hi, Running Azure Devops Server on Premesis. How do I depliy this fix? I have the same issue |
@Beakster you can follow the below steps to deploy this fix on your OnPremise server.
Please try above steps on a testing server before trying out on production server. |
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Jenkins Download Artifacts
Environment
Server - Azure Pipelines
Issue Description
We are using Azure Pipelines to processes a series of tasks
Publish Artifacts is the failing task. We are running a multibranch pipeline job in Jenkins. A sample JSON response returned by the Jenkins query issued by the Azure Pipeline task is below in task logs. There are branches that do not build, ExampleBranchA and master. The only branch that builds is ExampleSuccessfulBranch.
We believe the bug lays in the following query because lastSuccessfulBuild.timestamp does not exist for each job.
{{#with (selectMaxOf jobs 'lastSuccessfulBuild.timestamp') as |job|}}{ "branchName": "{{job.name}}", "buildId": "{{job.lastSuccessfulBuild.id}}" }{{/with}} on the result
Task logs
Formatted for easier reading
Error logs
Log Snippet
The text was updated successfully, but these errors were encountered: