Only grab the upload file if we haven't already grabbed it into the workspace
This commit is contained in:
parent
4dacb0d02f
commit
5bccaaedcc
|
@ -17,9 +17,13 @@ def call(Map args) {
|
|||
System.setProperty(propertyName,
|
||||
'sandbox allow-scripts allow-same-origin;')
|
||||
}
|
||||
|
||||
String uploadScriptName = '__azure-upload.sh'
|
||||
String uploadScript = libraryResource 'io/codevalet/externalartifacts/upload-file-azure.sh'
|
||||
writeFile file: uploadScriptName, text: uploadScript
|
||||
/* Only grab the file if it doesn't exist already */
|
||||
if (!fileExists(uploadScriptName)) {
|
||||
String uploadScript = libraryResource 'io/codevalet/externalartifacts/upload-file-azure.sh'
|
||||
writeFile file: uploadScriptName, text: uploadScript
|
||||
}
|
||||
|
||||
String uploadedUrl
|
||||
withCredentials([string(credentialsId: 'azure-access-key',
|
||||
|
|
Loading…
Reference in New Issue