This repository was archived by the owner on Aug 25, 2023. It is now read-only.
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -353,9 +353,11 @@ pipeline {
353
353
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
354
354
cd ${TEMPDIR}/unraid/templates/
355
355
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
356
- echo "Image is on the ignore list, removing Unraid template"
357
- git rm unraid/${CONTAINER_NAME}.xml || :
358
- git commit -m 'Bot Removing Deprecated Unraid Template' || :
356
+ echo "Image is on the ignore list, marking Unraid template as deprecated"
357
+ cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
358
+ git add -u unraid/${CONTAINER_NAME}.xml
359
+ git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
360
+ git commit -m 'Bot Moving Deprecated Unraid Template' || :
359
361
else
360
362
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
361
363
git add unraid/${CONTAINER_NAME}.xml
You can’t perform that action at this time.
0 commit comments