2022-07-10 11:46:20 +03:00
|
|
|
job("Build") {
|
|
|
|
gradlew("openjdk:11", "build")
|
|
|
|
}
|
|
|
|
|
|
|
|
job("Publish"){
|
|
|
|
startOn {
|
|
|
|
gitPush { enabled = false }
|
|
|
|
}
|
2022-07-10 12:01:20 +03:00
|
|
|
container("openjdk:11") {
|
|
|
|
kotlinScript { api ->
|
|
|
|
api.space().projects.automation.deployments.start(
|
|
|
|
project = api.projectIdentifier(),
|
|
|
|
targetIdentifier = TargetIdentifier.Key("gradle-tools"),
|
|
|
|
version = "current",
|
|
|
|
// automatically update deployment status based on a status of a job
|
|
|
|
syncWithAutomationJob = true
|
|
|
|
)
|
|
|
|
api.gradlew("publishAllPublicationsToSpaceRepository")
|
|
|
|
}
|
|
|
|
}
|
2022-07-10 11:46:20 +03:00
|
|
|
}
|