how to edit jenkins job configuration

To modify the jenkins config you do not need to edit it manualy on jenkins web application. To download the config you should go to the job config history and downalod the newest one. There are other options: 1. easy one user@host:/opt/cpp/jenkins_home/jobs/Test-my-branch$ pwd /opt/jenkins_home/jobs/Test-my-branch user@host:/opt/jenkins_home/jobs/Test-my-branch$ vim config.xml and do what you need 🙂 2. not … Continue reading how to edit jenkins job configuration

Advertisements

awk vs cut

How to parse the string and get elements form it input string: foo_20130612_15_25_46_bar01_02 expected output: 20130612 echo "foo_20130612_15_25_46_bar01_02" | awk -F'_' '{print $2}' echo "foo_20130612_15_25_46_bar01_02" | cut -d'_' -f2