This repository was archived by the owner on Nov 10, 2023. It is now read-only.
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 @@ -334,9 +334,11 @@ pipeline {
334334 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
335335 cd ${TEMPDIR}/unraid/templates/
336336 if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
337- echo "Image is on the ignore list, removing Unraid template"
338- git rm unraid/${CONTAINER_NAME}.xml || :
339- git commit -m 'Bot Removing Deprecated Unraid Template' || :
337+ echo "Image is on the ignore list, marking Unraid template as deprecated"
338+ cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
339+ git add unraid/${CONTAINER_NAME}.xml
340+ git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
341+ git commit -m 'Bot Moving Deprecated Unraid Template' || :
340342 else
341343 cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
342344 git add unraid/${CONTAINER_NAME}.xml
You can’t perform that action at this time.
0 commit comments