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