@@ -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'
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'
63
63
}
64
64
script{
65
65
env. LS_RELEASE_NUMBER = sh(
@@ -240,17 +240,14 @@ pipeline {
240
240
}
241
241
sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
242
242
sh ''' #! /bin/bash
243
- set -e
244
- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
245
243
docker run --rm \
246
- -e DESTINATION=\" ${IMAGE}/${META_TAG}/shellcheck-result.xml\" \
247
- -e FILE_NAME="shellcheck-result.xml" \
248
- -e MIMETYPE="text/xml" \
249
- -v ${WORKSPACE}:/mnt \
250
- -e SECRET_KEY=\" ${S3_SECRET}\" \
251
- -e ACCESS_KEY=\" ${S3_KEY}\" \
252
- -t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \
253
- python /upload.py'''
244
+ -v ${WORKSPACE}:/mnt \
245
+ -e AWS_ACCESS_KEY_ID=\" ${S3_KEY}\" \
246
+ -e AWS_SECRET_ACCESS_KEY=\" ${S3_SECRET}\" \
247
+ ghcr.io/linuxserver/baseimage-alpine:3.17 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
248
+ apk add --no-cache py3-pip && \
249
+ pip install s3cmd && \
250
+ s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml" || :'''
254
251
}
255
252
}
256
253
}
@@ -287,7 +284,7 @@ pipeline {
287
284
echo "Jenkinsfile is up to date."
288
285
fi
289
286
# Stage 2 - Delete old templates
290
- OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n .github/ISSUE_TEMPLATE/issue.bug.md\n .github/ISSUE_TEMPLATE/issue.feature.md"
287
+ 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 "
291
288
for i in ${OLD_TEMPLATES}; do
292
289
if [[ -f "${i}" ]]; then
293
290
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -304,7 +301,7 @@ pipeline {
304
301
git commit -m 'Bot Updating Templated Files'
305
302
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
306
303
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
307
- echo "Deleting old templates"
304
+ echo "Deleting old and deprecated templates"
308
305
rm -Rf ${TEMPDIR}
309
306
exit 0
310
307
else
0 commit comments