Update deploy script
This commit is contained in:
parent
adfd6641cc
commit
3565a03d57
@ -16,15 +16,19 @@ job("Publish"){
|
|||||||
api.space().projects.automation.deployments.start(
|
api.space().projects.automation.deployments.start(
|
||||||
project = api.projectIdentifier(),
|
project = api.projectIdentifier(),
|
||||||
targetIdentifier = TargetIdentifier.Key("gradle-tools"),
|
targetIdentifier = TargetIdentifier.Key("gradle-tools"),
|
||||||
version = "current",
|
version = api.gitRevision(),
|
||||||
// automatically update deployment status based on a status of a job
|
// automatically update deployment status based on a status of a job
|
||||||
syncWithAutomationJob = true
|
syncWithAutomationJob = true
|
||||||
)
|
)
|
||||||
|
try {
|
||||||
api.gradlew(
|
api.gradlew(
|
||||||
"publishAllPublicationsToSpaceRepository",
|
"publishAllPublicationsToSpaceRepository",
|
||||||
"-Ppublishing.space.user=\"$spaceUser\"",
|
"-Ppublishing.space.user=\"$spaceUser\"",
|
||||||
"-Ppublishing.space.token=\"$spaceToken\"",
|
"-Ppublishing.space.token=\"$spaceToken\"",
|
||||||
)
|
)
|
||||||
|
} catch (ex: Exception) {
|
||||||
|
println("Publish failed")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user