Skip to content

Commit 2d1dfae

Browse files
Bot Updating Templated Files
1 parent 23025fb commit 2d1dfae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@ pipeline {
382382
echo "Updating Unraid template"
383383
cd ${TEMPDIR}/unraid/templates/
384384
GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||')
385-
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
385+
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then
386+
echo "Image is on the ignore list, and already in the deprecation folder."
387+
elif grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
386388
echo "Image is on the ignore list, marking Unraid template as deprecated"
387389
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
388390
git add -u unraid/${CONTAINER_NAME}.xml

0 commit comments

Comments
 (0)