我有一个Jenkins管道作业,当将更改推送到Git存储库时触发:
pipelineJob('MyJob') {
definition {
cpsScm {
scm {
git {
remote {
url('git@bitbucket.org:myorg/myproject.git')
credentials('jenkins-bitbucket')
}
branch('develop')
branch('master')
branch('release/*')
branch('hotfix/*')
}
}
}
}
properties {
triggers{
bitbucketTriggers {
repositoryPushAction(false,false,'develop')
}
}
disableConcurrentBuilds()
}
}
当作业触发时,我想运行位于另一个 Git存储库中的常规脚本。有可能吗?
答案 0 :(得分:0)
是的,有两种解决方法,
祝你好运!