Derk-Jan Karrenbeld
07/30/2019, 3:28 PMrepeatable
to true
, and then this:
https://github.com/kittinunf/fuel/blob/master/fuel/src/main/kotlin/com/github/kittinunf/fuel/core/requests/DefaultRequest.kt#L203-L207Derk-Jan Karrenbeld
07/30/2019, 3:29 PMjsonBody
just doesn't do it correctly?Derk-Jan Karrenbeld
07/30/2019, 3:29 PMbody()
seems to do it correctly!Derk-Jan Karrenbeld
07/30/2019, 3:32 PMBody
is that I envisioned body types that piped from a read-once
input stream. But I think this is fine.itnoles
07/30/2019, 4:12 PMitnoles
07/30/2019, 4:15 PMsnowe
07/30/2019, 4:42 PMsnowe
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)
snowe
07/30/2019, 4:42 PMsnowe
07/30/2019, 4:43 PMsnowe
07/30/2019, 4:54 PM.awaitStringResponseResult()
itnoles
07/31/2019, 2:26 AMitnoles
07/31/2019, 2:26 AMitnoles
07/31/2019, 2:30 AMitnoles
07/31/2019, 2:35 AMkittinunf
07/31/2019, 2:36 AM_<
kittinunf
07/31/2019, 2:36 AMitnoles
07/31/2019, 2:38 AMitnoles
07/31/2019, 2:40 AMitnoles
07/31/2019, 2:41 AMitnoles
07/31/2019, 2:50 AMitnoles
07/31/2019, 3:00 AMitnoles
07/31/2019, 3:04 AMkittinunf
07/31/2019, 3:24 AMitnoles
07/31/2019, 3:47 AMkittinunf
07/31/2019, 2:50 PMdevelop
branch.itnoles
08/02/2019, 2:08 AMNikky
08/03/2019, 7:33 PMitnoles
08/03/2019, 8:01 PMNikky
08/03/2019, 8:01 PM