luke gorman commented on Improvement JENKINS-21861

this bit of bash does the trick

IFS=",";
JOBS="$TRIGGERED_JOB_NAMES"
JOBARRAY=($JOBS)

for JOB in "${JOBARRAY[@]}"
do
  echo $JOB
  NUMBER_NAME="TRIGGERED_BUILD_NUMBER_${JOB}"
  NUMBER=$(eval echo \$$NUMBER_NAME) 
  echo $NUMBER
  cp $JENKINS_HOME/jobs/$JOB/builds/$NUMBER/log $WORKSPACE/${JOB}_log.txt
done
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to