2021-04-08

Jenkins: print script executed by sh

Put inside the script.

  1. Print to trace
find /var/jenkins_home/jobs/My_Job/workspace@tmp/ \\
  -name 'script.sh' \\
  -exec cat '{}' \\;
  1. Or copy whole folder
cp -r /var/jenkins_home/jobs/My_Job/workspace@tmp/ ~/tmp

Put the correct root folder in the script

Комментариев нет: