Create a publishable artifact list; Create a checksum list
This commit is contained in:
parent
d736223660
commit
22d46575b0
3 changed files with 4 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
env.CHECKSUMARTIFACTS = "checksums/**"
|
||||
def CHECKSUMFOLDER = "${WORKSPACE}/checksums"
|
||||
|
||||
// SHA256SUM environment variable must be set to sha256sum utility
|
||||
// Generate a checksum file of from a list of files/directories relative to workspace
|
||||
|
|
@ -8,6 +7,7 @@ def generatelist(checksummable) {
|
|||
if !fileExists("${SHA256SUM}") {
|
||||
error "Please define the path to a sha256sum utility in the SHA256SUM environment variable"
|
||||
}
|
||||
def CHECKSUMFOLDER = "${WORKSPACE}/checksums"
|
||||
sh """
|
||||
rm -rf "${CHECKSUMFOLDER}"
|
||||
mkdir -p "${CHECKSUMFOLDER}"
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
|
||||
def fileutils = load("${autobuilder.commonscripts()}/file/utils.groovy")
|
||||
|
||||
env.PUBLISHABLEARTIFACTS = "publishable/**"
|
||||
def PUBLISHABLEFOLDER = "${WORKSPACE}/publishable"
|
||||
def PUBLISHABLEFILE = "${WORKSPACE}/publishable/list.json"
|
||||
|
||||
// Generate a list of artifact files that are publishable to outside parties
|
||||
def generatelist(publishable) {
|
||||
def PUBLISHABLEFOLDER = "${WORKSPACE}/publishable"
|
||||
sh """
|
||||
rm -rf "${PUBLISHABLEFOLDER}"
|
||||
mkdir -p "${PUBLISHABLEFOLDER}"
|
||||
|
|
@ -21,5 +18,6 @@ def generatelist(publishable) {
|
|||
}
|
||||
}
|
||||
def outJson = readJSON text: groovy.json.JsonOutput.toJson(filelist)
|
||||
def PUBLISHABLEFILE = "${PUBLISHABLEFOLDER}/list.json"
|
||||
writeJSON(file: PUBLISHABLEFILE, json: outJson, pretty: 4)
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
env.VERSIONARTIFACTS = "version/**"
|
||||
def VERSIONFOLDER = "${WORKSPACE}/version"
|
||||
VERSIONFOLDER = "${WORKSPACE}/version"
|
||||
|
||||
def generate(sourcerevision, sourcepath, basebuildnumber = "1000", releasejobname = "", versionfolder = "${VERSIONFOLDER}", jobname = "${JOB_NAME}", buildid = "${BUILD_ID}") {
|
||||
cs = autobuilder.commonscripts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue