Viewed 7k times. My question may be basic but please take time to answer. Any help is appreciated. Thank you community! Why you don't have the. It should be check out from the git repository. Well, first of all, your python script does not really have to be "built" - and it doesn't seem like the build script is doing much more than checking out the commit. Moreover, what do you mean you "don't really have the py file" - that's exactly what you put in the git repository, isn't it?
Also, why do you want to run this script with Jenkins to begin with? I meant I don't want to compile the py script that is on my machine. I want it to execute the script that he finds on git. Thats what i meant — user Jenkins seems like the wrong tool for this, but more to the point, doing sh 'python script. It should indeed have the script file available to it. Show 1 more comment. Active Oldest Votes. From what I understood, you have a python script which you want to run on Jenkins.
What you need to do is follow these steps by googling each one of them: Create a Jenkins job and configure your git repo in it. In Build-steps, select Execute shell script option. Save the job and click on Build. Check the console output of the job that is running. Let me know if that's what you were expecting to happen. Branches Tags. Could not load branches. Could not load tags. Latest commit. Amend final paragraph, since there is no 'scripts' directory.
Git stats 8 commits. Failed to load latest commit information. View code. Sign in to view. Copy link Quote reply. This was very helpful. Good job,it's very helpful. Nice work, very helpful to me, thanks.
Used this to extrapolate the poorly documented Jenkins api. Hi all, when I use the function named downloadFile url,filename , the code raised an error: curl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment.
0コメント