false
TOUCH_FILE
Touch file to update last modified time
false
FILE_CONTENT
Content of the file to upload
!!TESTFILE!!
false
true
false
false
false
false
set +x
if [ "${TOUCH_FILE}" != "true" ]
then
echo "${FILE_CONTENT}" > outfile.log
else
touch outfile.log
fi
echo [Current MD5 of uploaded/outfile.log: $(md5sum --tag uploaded/outfile.log)]
echo [Current modified time of uploaded/outfile.log: $(stat uploaded/outfile.log | grep Modify)]
echo [Current MD5 of outfile.log: $(md5sum --tag outfile.log)]
echo [Current modified time of outfile.log: $(stat outfile.log | grep Modify)]
if test -f ${JENKINS_HOME}/jobs/${JOB_NAME}/remoteResourceCache.json
then
echo [Current content of remoteResourceCache.json of job]
cat ${JENKINS_HOME}/jobs/${JOB_NAME}/remoteResourceCache.json
echo
else
echo [No remoteResourceCache.json of job]
fi
SSH:
localhost
false
/workspace/remote-deploy-test/uploaded/
outfile.log
false
false
false
false
false
[, ]+
120000
false
false
false
false
false
false
false
false