snowe
07/30/2019, 4:42 PMval downloadedArtifacts = mutableListOf<File>()
runBlocking {
launch {
filteredStageComponents.forEach { i ->
i.assets.forEach assets@{
val fileType = it.path.split("/").last()//.replace("$artifactId-$version", "").replace("-", "")
val path = Paths.get(tempDir.toURI().path, groupId, artifactId, version, fileType)
path.parent.toFile().mkdirs()
val tempFile = path.toFile()
downloadedArtifacts.add(tempFile)
Fuel.download(it.downloadUrl)
.fileDestination { _, _ -> tempFile }
.authentication().basic(extension.stageReadUsername, extension.stageReadPassword)
.response { _, _, _ -> }
}
}
}
}
<http://logger.info|logger.info>("SP: Beginning promotion")
System.exit(0)