@@ -59,7 +59,7 @@ pipeline {
5959 env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
6060 env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
6161 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'
6363 }
6464 script{
6565 env. LS_RELEASE_NUMBER = sh(
@@ -240,17 +240,14 @@ pipeline {
240240 }
241241 sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
242242 sh ''' #! /bin/bash
243- set -e
244- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
245243 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" || :'''
254251 }
255252 }
256253 }
@@ -287,7 +284,7 @@ pipeline {
287284 echo "Jenkinsfile is up to date."
288285 fi
289286 # 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 "
291288 for i in ${OLD_TEMPLATES}; do
292289 if [[ -f "${i}" ]]; then
293290 TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -304,7 +301,7 @@ pipeline {
304301 git commit -m 'Bot Updating Templated Files'
305302 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
306303 echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
307- echo "Deleting old templates"
304+ echo "Deleting old and deprecated templates"
308305 rm -Rf ${TEMPDIR}
309306 exit 0
310307 else
0 commit comments