job("Publish") { startOn { gitPush { branchFilter { +"dev" } } } gradlew("openjdk:11", "publish") { env["SPACE_USER"] = Secrets("space_user") env["SPACE_TOKEN"] = Secrets("space_token") } } job("Build"){ startOn { gitPush { branchFilter { -"dev" } } } gradlew("openjdk:11", "build") }