File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,9 @@ pipeline {
385
385
echo "Updating Unraid template"
386
386
cd ${TEMPDIR}/unraid/templates/
387
387
GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||')
388
- if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
388
+ if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then
389
+ echo "Image is on the ignore list, and already in the deprecation folder."
390
+ elif grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
389
391
echo "Image is on the ignore list, marking Unraid template as deprecated"
390
392
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
391
393
git add -u unraid/${CONTAINER_NAME}.xml
You can’t perform that action at this time.
0 commit comments