-
Notifications
You must be signed in to change notification settings - Fork 83
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
Resubmitted build uses the parameters of the last build instead of the failed build #335
Comments
I've seen the same issue. Basically, without this being fixed, spot workers with auto-retry are usable only for non-parameterized builds. For anything more sophisticated like pull-requests checks, you cannot rely on it. Any chance this will be fixed? Or should I just provide a patch? |
As already written in the original report, the problem is on this line: ec2-fleet-plugin/src/main/java/com/amazon/jenkins/ec2fleet/EC2FleetAutoResubmitComputerLauncher.java Line 104 in 8bfcdf4
One can call getLastFailedBuild instead of getLastBuild , that would work better in some cases, but it is not perfect either. To me, it seems that jenkins api doesn't provide the means to properly resubmit the failed job.
|
@naraharip2017, @pdk27 thanks for the work done on efbed25 but I believe we should reopen this issue since it's not resolved the described issue, The In addition, in our case, spot-termination marks the pipeline as ABORTED and not FAILURE which I'm not sure if it's caught by the IMO, the resubmit feature should look for the exact fail-build, gather the parameters, and trigger a new one with those parameters, WDYT? |
Issue Details
In case of spot termination, a new build is submitted with the last build parameters
ec2-fleet-plugin/src/main/java/com/amazon/jenkins/ec2fleet/EC2FleetAutoResubmitComputerLauncher.java
Lines 103 to 106 in 93a0317
But... in the case of multiple builds, the last one is not necessarily the build that should be rebuilt, which causes the resubmitted job uses incorrect parameters.
To Reproduce
Environment Details
Plugin Version?
2.5.1
Jenkins Version?
2.343
Spot Fleet or ASG?
Spot Fleet
Label based fleet?
Yes
Linux or Windows?
Linux
The text was updated successfully, but these errors were encountered: