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-users+unsubscr...@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.

Reply via email to