File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -343,9 +343,11 @@ pipeline {
343343 if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then
344344 cd ${TEMPDIR}/unraid/templates/
345345 if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
346- echo "Image is on the ignore list, removing Unraid template"
347- git rm unraid/${CONTAINER_NAME}.xml || :
348- git commit -m 'Bot Removing Deprecated Unraid Template' || :
346+ echo "Image is on the ignore list, marking Unraid template as deprecated"
347+ cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
348+ git add unraid/${CONTAINER_NAME}.xml
349+ git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
350+ git commit -m 'Bot Moving Deprecated Unraid Template' || :
349351 else
350352 cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
351353 git add unraid/${CONTAINER_NAME}.xml
You can’t perform that action at this time.
0 commit comments