Expand my Community achievements bar.

Need to trigger Adobe Cloud Pipeline job from External System(command prompt)

Avatar

Level 1

Hi Team,

We have CI/CD Code scan pipeline job configured and working in Cloud Manager. I need to trigger that pipeline job (Adobe Cloud Manager pipeline job) from command line (my system -external system) with branch name as a parameter. 

Currently the document which are available are having steps to integrate the access with Cloud manager but not having exact example or instructions to trigger the pipeline job (Adobe Cloud Manager pipeline job) from command line (my system -external system) with branch name as a parameter.

Could you please provide me the exact document for this integration?

Note:

Below are the reference document which I followed to integrate the access with Cloud Manager with JWT (JSON Web Token).

https://helpx.adobe.com/marketing-cloud-core/kb/adobe-io-authentication-step-by-step.html

https://www.adobe.io/apis/experiencecloud/cloud-manager/docs.html

Br

Chandrakant Gurhale

6 Replies

Avatar

Employee

- Have you tried the CloudManager CLI  https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/master/README.md ? it requires first to have an integration with Adobe I/O (console.adobe.io)

-  Also, to trigger the pipeline, you can run the command :https://{host_name}}/api/program/{{program_id}}/pipeline/{{pipeline_id}}/execution ( API ). Did you try that as well?

Thanks,

Andrei

Avatar

Level 1

Thanks Andrei for your valuable reply.

As per document, I have incorporated Cloud Manager Public API in Postman application and able to trigger pipeline job from api successfully. But, as per Adobe Support team update currently we can't provide branch name as parameter in api calls. They are going to integrate that feature in near future with Cloud Manager api.

I will try soon how we can use that api in Jenkins(external system) to trigger the Cloud manager pipeline job and will let you know.

Thanks Andrei for support.

Br

Chandrakant

Avatar

Level 1

hi chandrakant,

 

I am trying to call cloud manager pipeline from jenkins but unable to.

i have followed below steps 

1. i have created the api integration ( choose cloud manager ) at adobe io console.

2. used cloud manager plugin to connect with adobe io. test connect successful.

3. created new itme in jenkins and tried to build that new item but access-denied issue is coming as below logs

 

[INFO] Starting pipeline with programId: 3355 and pipelineId: 1508335
ERROR: Build step failed with exception
java.lang.IllegalStateException: Pipeline was not started, service responded with status: 403and error body: {"type":"http://ns.adobe.com/adobecloud/access-denied","status":403,"title":"Access Denied","errors":["Access is denied"]}
        at io.jenkins.plugins.cloudmanager.CloudManagerBuilder.perform(CloudManagerBuilder.java:100)
        at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
        at hudson.model.Build$BuildExecution.build(Build.java:197)
        at hudson.model.Build$BuildExecution.doRun(Build.java:163)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514)
        at hudson.model.Run.execute(Run.java:1907)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:429)
Build step 'Cloud Manager Build Step' marked build as failure
Finished: FAILURE

 

 

Please also provide any sample script to connect with abode io from jenkins.

 

Avatar

Community Advisor

Even i am facing the same issue. Getting Access denied response while running the https://{{host_name}}/api/program/{{program_id}}/pipeline/{{pipeline_id}}/execution from postman