Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
chandrakantg550
Level 1

20-06-2019

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

Replies

Avatar

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
chandrakantg550
Level 1

20-06-2019

Avatar

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
chandrakantg550
Level 1

27-06-2019

Hi Team,

Any update?

Br

Chandrakant

Avatar

Avatar
Boost 5
Employee
AndreiParaschiv
Employee

Likes

7 likes

Total Posts

49 posts

Correct Reply

18 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
AndreiParaschiv
Employee

Likes

7 likes

Total Posts

49 posts

Correct Reply

18 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
AndreiParaschiv
Employee

26-08-2019

- 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

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
chandrakantg550
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
chandrakantg550
Level 1

26-08-2019

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

Avatar
Give Back
Level 1
punitkhatri
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
punitkhatri
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Give Back
View profile
punitkhatri
Level 1

17-12-2020

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.