Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Jenkins 1.421
Description
If you tick the box to enable "Archive the artifacts", populate the "Files to archive", and your build fails to output those artifacts it will fail with something like this:
12:11:51 Archiving artifacts 12:11:51 ERROR: No artifacts found that match the file pattern "tfields/Live/Engine/Tools/Layout.*". Configuration error? 12:11:57 ERROR: 'tfields/Live/Engine/Tools/Layout.*' doesn't match anything: 'tfields' exists but not 'tfields/Live/Engine/Tools/Layout.*' 12:11:57 Build step 'Archive the artifacts' changed build result to FAILURE
Depending on what your build actually does, those artifacts might not always be created. I'd like to propose that you add an option to make the archiving of artifacts non fatal.
Thanks,
Tom.
Attachments
Issue Links
- depends on
-
JENKINS-17637 ArtifactArchiver compatibility break
-
- Resolved
-
- is duplicated by
-
JENKINS-13920 Provide an option whether or not fail the build on artifact archiving not finding any artifacts
-
- Closed
-
- is related to
-
JENKINS-17236 Pluggable artifact transfer & storage
-
- Resolved
-
Code changed in jenkins
User: Jesse Glick
Path:
core/src/main/java/hudson/tasks/ArtifactArchiver.java
core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
core/src/main/resources/hudson/tasks/ArtifactArchiver/help-allowEmptyArchive.html
test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
test/src/test/java/hudson/model/AbstractProjectTest.java
test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
test/src/test/java/hudson/tasks/LogRotatorTest.java
http://jenkins-ci.org/commit/jenkins/aeb887c12d60987745ed40a55d0f6ddcee503426
Log:
Merge pull request #732 from pjrt/
JENKINS-10502[FIXED JENKINS-10502] Option to make the build not fail if there is nothing to archive
Compare: https://github.com/jenkinsci/jenkins/compare/77e011a3dae3...aeb887c12d60
–
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.