Skip to content
This repository was archived by the owner on Sep 5, 2022. It is now read-only.

Commit b43308c

Browse files
Bot Updating Templated Files
1 parent 877eeaa commit b43308c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,11 @@ pipeline {
359359
git add unraid/ignore.list
360360
fi
361361
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
362-
echo "Image is on the ignore list, removing Unraid template"
363-
git rm unraid/${CONTAINER_NAME}.xml || :
364-
git commit -m 'Bot Removing Deprecated Unraid Template' || :
362+
echo "Image is on the ignore list, marking Unraid template as deprecated"
363+
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
364+
git add -u unraid/${CONTAINER_NAME}.xml
365+
git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
366+
git commit -m 'Bot Moving Deprecated Unraid Template' || :
365367
else
366368
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
367369
git add unraid/${CONTAINER_NAME}.xml

0 commit comments

Comments
 (0)