import groovy.json.JsonOutput
import java.text.SimpleDateFormat
import java.util.jar.Manifest
ext {
manifestFileName = "manifest.json"
targetArch = "x86_64"
}
// Generates external manifest.json beside the generated tarball
def generateManifest(String archivePath) {
File f = new File(archivePath)
def manifestPath = "${f.parent}/${manifestFileName}"
// Adapt payload to track the generated archive name
def manifest = [ tar_name: f.name ]
file(manifestPath).text = JsonOutput.prettyPrint(JsonOutput.toJson(manifest))
println "Manifest is generated in: ${manifestPath}"
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)