I tried to setup a bunch of maven jobs as "Bitbucket Team/Project". In the section "Scan Organization Folder Triggers" I selected the option "Build whenever a SNAPSHOT dependency is built".
In the Bitbucket project I have two GIT repos. One for module A and one for module B.
Module B has a Maven snapshot dependency to module A.
Bot repos have the following Jenkins file:
pipeline {
agent {
node {
label 'maven'
}
}
triggers {
upstream(upstreamProjects: 'Nightly Build Trigger',
threshold: hudson.model.Result.SUCCESS)
}
stages {
stage('Build') {
steps {
withMaven(
mavenLocalRepo: '.repository'
) {
bat "mvn clean deploy"
}
}
}
}
}
However it seems that the "Build whenever a SNAPSHOT dependency is built" option has no effect.
If module A is built the built for module B is not triggered.
If in "View configuration" of the build job of a branch the option "Build whenever a SNAPSHOT dependency is built" is not selected.
Is this options siliently ingored by "Bitbucket Team/Project"?
Environment:
Jenkins 2.73.2
Jenkins Maven Plugin 3.0.7
Richard
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9f178deb-6157-47ee-85b3-88715bb5404b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/32982e93-e480-4d8c-9e20-5c5f3b8d9eda%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
#!groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
script {
properties([pipelineTriggers([snapshotDependencies()])])
}
withMaven(
mavenLocalRepo: '.repository'
) {
bat "clean deploy"
}
}
}
}
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9efce421-d691-46a1-a33c-abd05b8ca6ba%40googlegroups.com.