-
Bug
-
Resolution: Unresolved
-
Critical
The artifact deployer form outlines that 'Remote Directory' is mandatory as per attached screenshot.
But, if the value is actually empty during run time, this does not get caught.
Right now, that value gets checked against null only:
if (entry.getRemote() == null) { throw new ArtifactDeployerException("A remote directory must be set."); }
I think there should be a check for character count = 0, or empty.
This is important: A scenario took place on our instance where a user left 'Remote Directory' empty and checked checkbox 'Clean-up remote directory before deployment'. It wiped everything empty under the agent's root dir. All workspaces, Maven repo, and other stuff...
[JENKINS-29835] Condition for Remote Directory should Include Empty
Workflow | Original: JNJira [ 164912 ] | New: JNJira + In-Review [ 181738 ] |
Priority | Original: Major [ 3 ] | New: Critical [ 2 ] |
Description |
Original:
The artifact deployer form outlines that 'Remote Directory' is mandatory as per attached screenshot. But, if the value is actually empty during run time, this does not get caught. Right now, that value gets checked against null only: {code:java} if (entry.getRemote() == null) { throw new ArtifactDeployerException("A remote directory must be set."); } {code} I think there should be a check for character count = 0, or empty. This is important: A scenario took place on our instance where a user left 'Remote Directory' empty and checked checkbox 'Clean-up remote directory before deployment'. It wiped everything empty under the slave's root dir. All workspaces, Maven repo, and other stuff... |
New:
The artifact deployer form outlines that 'Remote Directory' is mandatory as per attached screenshot.
But, if the value is actually empty during run time, this does not get caught. Right now, that value gets checked against null only: {code:java} if (entry.getRemote() == null) { throw new ArtifactDeployerException("A remote directory must be set."); } {code} I think there should be a check for character count = 0, or empty. *This is important*: A scenario took place on our instance where a user left 'Remote Directory' empty and checked checkbox 'Clean-up remote directory before deployment'. It wiped everything empty under the agent's root dir. All workspaces, Maven repo, and other stuff... |