Can I store Shell commands in Git for a Jenkins job and run that job which needs these scripts

7 views
Skip to first unread message

Vijay Gongle

unread,
Jul 28, 2019, 4:48:53 PM7/28/19
to Jenkins Users
Hi, 
I have a Jenkins freestyle/Maven job which has a bunch of shell script in the post steps written. 
Can I store these scripts in the Git and use it when someone runs the proejct. 
Note: SCM is configured with its appropriate repo url where the actual code is pulled. 
And these shell scripts run as post step which I want to get these from Git as well. How can I do that ? 

Help is appreciated. 

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages