@@ -59,7 +59,7 @@ pipeline {
59
59
env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
60
60
env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
61
61
env. PULL_REQUEST = env. CHANGE_ID
62
- env. TEMPLATED_FILES = ' Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale .yml ./.github/workflows/call_invalid_helper .yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml ./root/donate.txt'
62
+ env. TEMPLATED_FILES = ' Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker .yml ./.github/workflows/call_issues_cron .yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml ./root/donate.txt'
63
63
}
64
64
script{
65
65
env. LS_RELEASE_NUMBER = sh(
@@ -234,17 +234,14 @@ pipeline {
234
234
}
235
235
sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
236
236
sh ''' #! /bin/bash
237
- set -e
238
- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
239
237
docker run --rm \
240
- -e DESTINATION=\" ${IMAGE}/${META_TAG}/shellcheck-result.xml\" \
241
- -e FILE_NAME="shellcheck-result.xml" \
242
- -e MIMETYPE="text/xml" \
243
- -v ${WORKSPACE}:/mnt \
244
- -e SECRET_KEY=\" ${S3_SECRET}\" \
245
- -e ACCESS_KEY=\" ${S3_KEY}\" \
246
- -t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \
247
- python /upload.py'''
238
+ -v ${WORKSPACE}:/mnt \
239
+ -e AWS_ACCESS_KEY_ID=\" ${S3_KEY}\" \
240
+ -e AWS_SECRET_ACCESS_KEY=\" ${S3_SECRET}\" \
241
+ ghcr.io/linuxserver/baseimage-alpine:3.17 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
242
+ apk add --no-cache py3-pip && \
243
+ pip install s3cmd && \
244
+ s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml" || :'''
248
245
}
249
246
}
250
247
}
@@ -281,7 +278,7 @@ pipeline {
281
278
echo "Jenkinsfile is up to date."
282
279
fi
283
280
# Stage 2 - Delete old templates
284
- OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n .github/ISSUE_TEMPLATE/issue.bug.md\n .github/ISSUE_TEMPLATE/issue.feature.md"
281
+ OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml "
285
282
for i in ${OLD_TEMPLATES}; do
286
283
if [[ -f "${i}" ]]; then
287
284
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -298,7 +295,7 @@ pipeline {
298
295
git commit -m 'Bot Updating Templated Files'
299
296
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
300
297
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
301
- echo "Deleting old templates"
298
+ echo "Deleting old and deprecated templates"
302
299
rm -Rf ${TEMPDIR}
303
300
exit 0
304
301
else
0 commit comments