Link to home
Start Free TrialLog in
Avatar of CSIA AN
CSIA ANFlag for Andorra

asked on

How to trigger a JOB on jenkins using a specific URL as Repository URL on Source Code Management?

Let me see if you understand me well.

We have  a job on jenkins configured with one Repository URL pointing to a fixed SVN repository URL. This JOB is executed when there're changes (commits, updates, ect) on the SVN reposotory. Everything is good.

But, now there're more than one developer creating new branches on the same repository. See image attached. What if developer of branch 8, wants to test its code by running the JOB on jenkins if he can not change Repository URL of the JOB inside jenkins?

Is there any way to trigger the JOB by changing its Repository URL wihout any manual intervention?

Is it possible?

Thanks.
run-job-jenkinks.png
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CSIA AN

ASKER

Hi,

Can you explain me the option3)? Is it a plugin?

We'd like to kee only one JOB, so we need a way to pass jenkisn job the URL I want to test in my JOB. Thsi URL can be a branch or a trunk. If a developer create a new branch, this new URL needs to be send to JOB Jenkins. That's what we need. Just pass new URL to my JOB.

Thanks.
Yes, exactly. Just look at the list of available plugins and you may find e.g. this one: https://wiki.jenkins-ci.org/display/JENKINS/Build+With+Parameters+Plugin

Maybe not exactly what you need but there are many plugins which support parameters passing in Jenkins.
Avatar of CSIA AN

ASKER

thanks pcelba.. sorry the delay.. I'll be back soon..
Avatar of CSIA AN

ASKER

OK.. thanks