Kill and restart Jenkins task in a job without failure -


is there way kill , restart jenkins slave task in job without failure? if directly, job fails because connection lost.

i need refresh path environment variable after job changes it.

i don't know how changing path variable, jenkins subtasks in own shell...

so export path=$path:/custom/bin have live of jenkins task , not whole job , not future jobs

if editing like: /etc/bashrc stop that...

you can source custom script if changing bunch of stuff @ top of task, like:

source ./some/file/that/exports/path appdefinedincustompath -s dothings 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -