* in foo.git/Jenkinsfile
#!/usr/bin/env groovy
node {
stage('Test') {
checkout scm
sh "( sleep 5 && echo foo )"
}
}#!/usr/bin/env groovy
properties([
pipelineTriggers([
upstream(
threshold: hudson.model.Result.SUCCESS,
upstreamProjects: 'repos/foo/master'
)
])
])
node {
stage('Test') {
checkout scm
sh "( sleep 5 && echo bar )"
}
}
Both Jenkins projects are saved underneath the directory "repos". Now I tried several versions how to reference "upstreamProjects", with relative paths "../../foo/master", "../foo/master" or simply "foo/master", or with the absolute path like above, but all without success: the "bar.git" project is just never triggered.
What am I doing wrong? Is this even a supported use case and if not, what are my alternatives given the above setup?
Thanks in advance,
Thomas.