Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to control whether or not artifacts are downloaded
There is a new option (downloadArtifacts) that controls whether or not artifacts are downloaded. If they are (the default to maintain backwards compatibility) then the trigger will check to see if any artifacts inside a dependency have changed with out changing the version number. If artifacts are not configured for download, the trigger only checks to make sure the resolved dependency version has not changed. Fixes JENKINS-28044
- Loading branch information
Showing
4 changed files
with
72 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/resources/org/jenkinsci/plugins/ivytrigger/IvyTrigger/help-downloadArtifacts.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
<p> | ||
Whether or not to download the artifacts within a dependency.<br/> | ||
If this is false, then much less disk space is used. However a change in the | ||
artifacts, or the addition or removal of artifacts, of a dependency that does | ||
not <strong>also</strong> cause a version number change in the dependency | ||
will not be detected. | ||
</p> | ||
</div> |
Do you really mean
artifactFile != null
?This variable is assigned one line above and therefore never
null
.Did you possibly check for
artifactFile.exists()
?