cancel
Showing results for 
Search instead for 
Did you mean: 

Can we trigger a jenkins job thru ready api

Highlighted
Occasional Contributor

Can we trigger a jenkins job thru ready api

Hi All,

I am trying to automate a process in my present project, i have two questions related to it.

1) can I trigger a Jenkins job using ready api?

2) If the answer to my 1st question is Yes, then this jenkins job does a spark submit and run an etl job on hadoop cluster and presently I do a manual check on job status (accept, running, finished) on hadoop by passing a parameter which I used while triggering the jenkins job, So, my second question is can I make calls to the hadoop cluster to check the job status (as this job takes times around 5 to 10 mins to complete can I make recurring calls until the status changes to finished).

 

Tags (3)
5 REPLIES 5
Highlighted
Community Manager

Re: Can we trigger a jenkins job thru ready api

Hi @MD01,

 

It is possible to run ReadyAPI tests from Jenkins. The following articles contain a detailed description:

This will allow you to integrate your tests into the CI process.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: Can we trigger a jenkins job thru ready api

Hi Tanya,

Thanks for your reply, My question was, if we can trigger a jenkjins job thru ready api not running ready api test thru jenkins

Highlighted
Community Manager

Re: Can we trigger a jenkins job thru ready api

Hi @MD01 !

Thank you for the clarification. Let's see if the Community can help you figure this out. 

@nmrao , @richie , @jsheph01 , have you got any suggestions? Thank you!


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Community Hero

Re: Can we trigger a jenkins job thru ready api

I don't understand why is it needed at all? or over using the tool which is not required.

Because, CI/CD tools are self sufficient to trigger jobs by time or by check-in artifacts into git/svn etc., No other tools is required to trigger the job.


Regards,
Rao.
Highlighted
Community Manager

Re: Can we trigger a jenkins job thru ready api

Hi @MD01,

 

Usually, it's required to run ReadyAPI tests from Jenkins. Could you please explain a bit your test scenario? Why do you need to trigger Jenkins jobs through ReadyAPI? Perhaps, we can suggest an alternative solution. I see that Jenkins provides API - so you can use it to get access to the target job. Here is an example:

https://www.tothenew.com/blog/jenkins-api-integration-trigger-job-remotely/

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors