Re: How to initialize some bash helper function in all bash scripts

2017-02-04 Thread Victor Martinez
Unfortunately, the way I only know to automate those steps is either purely cnf mgmt based, such as: puppet, chef or using some groovy script injecting those slaves setup through the jenkins internal api, but it sounds a bit hacky. Although, using a build wrapper script might help you out, as

Re: How to initialize some bash helper function in all bash scripts

2017-02-04 Thread stanley . shen
Thanks for reply. Yes, they works, but in both ways, we need some manual configuration on jenkins master/slave, and it makes the maintenance hard if there are quite lot such things. I am trying to find a way so that it's wholly independent on jenkins master/slave so that even we add a new

How to initialize some bash helper function in all bash scripts

2017-02-03 Thread stanley . shen
Hello, all I am having a requirement to share some bash script function in nearly all jobs. Right now I defined them as environment variable, and eval them in jobs as needed. I was trying to find a more elegant way but got no lucky, for example in some where I can define some bash functions