jenkins-infra / pipeline-library

Collection of custom steps and variables for our Jenkins instance(s)
294 stars 136 forks source link

`buildDockerAndPublishImage` fails at `GitHub Release` stage if there are more than one "next" draft releases #379

Closed lemeurherve closed 2 years ago

lemeurherve commented 2 years ago

https://github.com/jenkins-infra/pipeline-library/blob/8b9941bd72130ea732cc804726218d64da7da22b/vars/buildDockerAndPublishImage.groovy#L199

Example of failing build :

image
Corresponding releases ![image](https://user-images.githubusercontent.com/91831478/168426201-64185b6b-a4d6-4ce8-94b5-17dff10235d4.png)

https://github.com/jenkins-infra/docker-openvpn/releases

dduportal commented 2 years ago

Side note : there is also the case of no « next » release. Usually, adding trigger event « release » on the gh workflow for release drafter fix it. But maybe we could trigger release-drafter here and manage the draft release for ourselves ?