Trigger part of a build chain?

Answered

I'm new to this. so any help is appreciated.
Build chain:
    ↗ B ↘
A → C →E
    ↘ D ↗
where A is the beginning of the chain (prerequiste of everything else in the chain), BCD are parallel builds (don't depend on one another), and E (a reporter which notify the team about the changes of BCD deployed at once) will be carried out after all previous build succeed. This build chain will be run at a fixed schedule weekly.

But sometimes there are also scenarios where I only want to run B, which will trigger A and run B and then E, leaving all the others untouched. Is there any way to achieve this?

FYI: we are trying to use Kotlin DSL to codify the configurations

1 comment
Comment actions Permalink

How are you triggering E in the build chain, with only a schedule trigger? You should be able to trigger a build on B (with a snapshot dependency on A) without triggering a build on E. Could you please share an example of your Kotlin DSL?

package _Self.buildTypes

import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.ScheduleTrigger
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule

object E : BuildType({
name = "E"

type = BuildTypeSettings.Type.COMPOSITE

vcs {
root(ParallelBuildExample)

showDependenciesChanges = true
}

triggers {
schedule {
schedulingPolicy = weekly {
dayOfWeek = ScheduleTrigger.DAY.Monday
hour = 23
minute = 55
}
branchFilter = ""
triggerBuild = always()
withPendingChangesOnly = false
}
}

dependencies {
snapshot(B) {
}
snapshot(C) {
}
snapshot(D) {
}
}
})
0

Please sign in to leave a comment.