Note: Never used jenkins before
I have a python script that takes in 3 arguments to run. Via a terminal you would use it like this:
python script.py arg1 arg2 arg3
I want to create a new jenkins job which basically utilizes this script and runs it after the 3 arguments have been provided. However I cannot find any examples which run such a job. The script is placed in a github repo so its path looks like this: https://github.com/username/repo/folder/script.py
. This is what I did:
1. I went ahead and created a new job New Item --> Freestyle Project
.
2. Under GitBucket --> Githubproject I added the path : https://github.com/username/repo/
3. I then clicked on This build is parameterized
and added 3 choice
parameters which the possible options.
4. Then under build I selected execute shell and gave the command python script.py $param1 $param2 $param3
My question is that , in step 2, should I be giving the path to the script as https://github.com/username/repo/folder/script.py
or is it right the way I have it now.
Any suggestions / links to tutorials will be helpful