|
| 1 | +/* |
| 2 | + * Copyright 2024-2025 JetBrains s.r.o. and Compose Hot Reload contributors. |
| 3 | + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. |
| 4 | + */ |
| 5 | + |
| 6 | +package builds |
| 7 | + |
| 8 | +import builds.conventions.PublishDevPrivilege |
| 9 | +import builds.conventions.PublishLocallyConvention |
| 10 | +import builds.conventions.PushPrivilege |
| 11 | +import builds.conventions.publishDevVersion |
| 12 | +import builds.conventions.setupGit |
| 13 | +import jetbrains.buildServer.configs.kotlin.BuildType |
| 14 | +import jetbrains.buildServer.configs.kotlin.buildSteps.gradle |
| 15 | +import jetbrains.buildServer.configs.kotlin.triggers.ScheduleTrigger |
| 16 | +import jetbrains.buildServer.configs.kotlin.triggers.schedule |
| 17 | + |
| 18 | +object PublishDevBuild : BuildType({ |
| 19 | + name = "Publish: Dev Build" |
| 20 | + description = "Bumps the 'dev' version and publishes to 'dev' repositories; Bumps the bootstrap version" |
| 21 | + |
| 22 | + triggers { |
| 23 | + schedule { |
| 24 | + weekly { |
| 25 | + dayOfWeek = ScheduleTrigger.DAY.Sunday |
| 26 | + dayOfWeek = ScheduleTrigger.DAY.Wednesday |
| 27 | + timezone = "Europe/Berlin" |
| 28 | + hour = 3 |
| 29 | + } |
| 30 | + } |
| 31 | + } |
| 32 | + |
| 33 | + |
| 34 | + steps { |
| 35 | + setupGit() |
| 36 | + |
| 37 | + gradle { |
| 38 | + workingDir = "repository-tools" |
| 39 | + name = "Bump Dev Version" |
| 40 | + tasks = "bumpDevVersion" |
| 41 | + } |
| 42 | + |
| 43 | + publishDevVersion() |
| 44 | + |
| 45 | + gradle { |
| 46 | + workingDir = "repository-tools" |
| 47 | + name = "Bump Bootstrap Version" |
| 48 | + tasks = "bumpBootstrapVersion" |
| 49 | + } |
| 50 | + } |
| 51 | +}), PushPrivilege, PublishDevPrivilege, PublishLocallyConvention |
0 commit comments