Only attempt to access sshPrivateKey property if present
This commit is contained in:
@@ -206,7 +206,9 @@ uploadArchives {
|
||||
name = 'sshHost: ' + sshHost // used for debugging
|
||||
host = sshHost
|
||||
user = sshUsername
|
||||
keyFile = sshPrivateKey as File
|
||||
if (project.hasProperty('sshPrivateKey')) {
|
||||
keyFile = sshPrivateKey ? sshPrivateKey as File : null
|
||||
}
|
||||
addArtifactPattern "${remoteDocsDir}/${archive.archiveName}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user