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 @@ -347,9 +347,11 @@ pipeline {
347347 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
348348 cd ${TEMPDIR}/unraid/templates/
349349 if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
350- echo "Image is on the ignore list, removing Unraid template"
351- git rm unraid/${CONTAINER_NAME}.xml || :
352- git commit -m 'Bot Removing Deprecated Unraid Template' || :
350+ echo "Image is on the ignore list, marking Unraid template as deprecated"
351+ cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
352+ git add -u unraid/${CONTAINER_NAME}.xml
353+ git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
354+ git commit -m 'Bot Moving Deprecated Unraid Template' || :
353355 else
354356 cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
355357 git add unraid/${CONTAINER_NAME}.xml
You can’t perform that action at this time.
0 commit comments