[JIRA] (JENKINS-62206) Triggering Pipeline job from a multibranch pipeline fails

4 views
Skip to first unread message

nazeya@gmail.com (JIRA)

unread,
May 7, 2020, 12:30:03 PM5/7/20
to jenkinsc...@googlegroups.com
nazia mahimi created an issue
 
Jenkins / Bug JENKINS-62206
Triggering Pipeline job from a multibranch pipeline fails
Issue Type: Bug Bug
Assignee: Matthew DeTullio
Components: multi-branch-project-plugin (not Pipeline), pipeline, postbuildscript-plugin
Created: 2020-05-07 16:29
Priority: Major Major
Reporter: nazia mahimi

triggering a pipeline job from the multibranch pipeline doesnt work , it fails with the following error
Sucessfully[Pipeline] build[Pipeline] }[Pipeline] // scriptError when executing success post condition:
hudson.AbortException: No item named UKAPI-Data-Manager-Deploy-Dev found
at org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerStepExecution.start(BuildTriggerStepExecution.java:75)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:286)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:179)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
at sun.reflect.GeneratedMethodAccessor1473.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
here is the code in the Multibranch pipeline

post {
always

{ echo 'Test run completed' }

success {
script {
if (env.BRANCH_NAME == 'master') {
echo 'Sucessfully'
build job: 'Data-Deploy-Dev', parameters: [
string(name: 'DOCKER_APP_IMAGE_TAG', value: "${env.DOCKER_APP_IMAGE_TAG}"),
string(name: 'DOCKER_WEB_IMAGE_TAG', value: "${env.DOCKER_WEB_IMAGE_TAG}")
], wait: false
}

else

{ echo 'Sucessfully!' }

}
}
failure

{ echo 'Failed!' }

unstable

{ echo 'This will run only if the run was marked as unstable' }

changed

{ echo 'This will run only if the state of the Pipeline has changed' echo 'For example, if the Pipeline was previously failing but is now successful' }

}

 

the pipeline job Data-Deploy-Dev is present, but still it errors as not found

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

nazeya@gmail.com (JIRA)

unread,
May 8, 2020, 9:22:51 AM5/8/20
to jenkinsc...@googlegroups.com
nazia mahimi updated an issue
Change By: nazia mahimi
triggering a pipeline job from the multibranch pipeline doesnt work , it fails with the following error
Sucessfully[Pipeline] build[Pipeline] }[Pipeline] // scriptError when executing success post condition:
hudson.AbortException: No item named UKAPI- Data- Manager- Deploy-Dev found
{

nazeya@gmail.com (JIRA)

unread,
May 8, 2020, 9:23:02 AM5/8/20
to jenkinsc...@googlegroups.com
nazia mahimi commented on Bug JENKINS-62206
 
Re: Triggering Pipeline job from a multibranch pipeline fails

corrected the job name , do i have to specifiy the branch too? if so how?

Reply all
Reply to author
Forward
0 new messages