Skip to content
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 job get artifact related bug introduced in Spinnaker 1.32.4 #6948

Open
dprangnell opened this issue Apr 25, 2024 · 0 comments
Open

Comments

@dprangnell
Copy link

Issue Summary:

Successfully executed Jenkins jobs can be erroneously marked as Terminal in Spinnaker.

Environment:

Problem not seen in 1.32.3 or previous versions. Problem confirmed in 1.32.4, 1.33.2 and 1.34.2.

Feature Area:

Calling jenkins jobs.

Description:

If you call a jenkins job that produces a 0 byte artifact, Spinnaker fails to retrieve the artifact and erroneously marks the job as failed.

Exception ( Get Build Artifacts )
404 Not Found

Steps to Reproduce:

  1. Create a jenkins job that creates an empty artifact. You can do this by adding the following to your Jenkinsfile:
sh "touch build.properties"
archiveArtifacts 'build.properties
  1. Run the jenkinsjob to confirm it succeeds and produces a 0 bit artifact called build.properties:
    Screenshot 2024-04-24 at 10 06 53 PM

  2. Call the job from a spinnaker pipeline.

  3. The Jenkins job should succeed, but the stage will fail in spinnaker trying to retrieve this empty artifact:

Screenshot 2024-04-24 at 9 45 16 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant