@@ -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 ./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'
6363 }
6464 script{
6565 env. LS_RELEASE_NUMBER = sh(
@@ -234,17 +234,14 @@ pipeline {
234234 }
235235 sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
236236 sh ''' #! /bin/bash
237- set -e
238- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
239237 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" || :'''
248245 }
249246 }
250247 }
@@ -281,7 +278,7 @@ pipeline {
281278 echo "Jenkinsfile is up to date."
282279 fi
283280 # 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 "
285282 for i in ${OLD_TEMPLATES}; do
286283 if [[ -f "${i}" ]]; then
287284 TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -298,7 +295,7 @@ pipeline {
298295 git commit -m 'Bot Updating Templated Files'
299296 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
300297 echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
301- echo "Deleting old templates"
298+ echo "Deleting old and deprecated templates"
302299 rm -Rf ${TEMPDIR}
303300 exit 0
304301 else
0 commit comments