Skip to content

Commit 03361a7

Browse files
Bot Updating Templated Files
1 parent ee92cee commit 03361a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ pipeline {
381381
echo "Updating Unraid template"
382382
cd ${TEMPDIR}/unraid/templates/
383383
GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||')
384-
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml ]]; then
385-
echo "Image is on the ignore list, but no template exist, skipping unraid template deprecation"
384+
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then
385+
echo "Image is on the ignore list, and already in the deprecation folder."
386386
elif grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
387387
echo "Image is on the ignore list, marking Unraid template as deprecated"
388388
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/

0 commit comments

Comments
 (0)