@@ -58,7 +58,7 @@ pipeline {
5858 env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
5959 env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
6060 env. PULL_REQUEST = env. CHANGE_ID
61- 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'
61+ 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'
6262 }
6363 script{
6464 env. LS_RELEASE_NUMBER = sh(
@@ -232,17 +232,14 @@ pipeline {
232232 }
233233 sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
234234 sh ''' #! /bin/bash
235- set -e
236- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
237235 docker run --rm \
238- -e DESTINATION=\" ${IMAGE}/${META_TAG}/shellcheck-result.xml\" \
239- -e FILE_NAME="shellcheck-result.xml" \
240- -e MIMETYPE="text/xml" \
241- -v ${WORKSPACE}:/mnt \
242- -e SECRET_KEY=\" ${S3_SECRET}\" \
243- -e ACCESS_KEY=\" ${S3_KEY}\" \
244- -t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \
245- python /upload.py'''
236+ -v ${WORKSPACE}:/mnt \
237+ -e AWS_ACCESS_KEY_ID=\" ${S3_KEY}\" \
238+ -e AWS_SECRET_ACCESS_KEY=\" ${S3_SECRET}\" \
239+ ghcr.io/linuxserver/baseimage-alpine:3.17 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
240+ apk add --no-cache py3-pip && \
241+ pip install s3cmd && \
242+ s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml" || :'''
246243 }
247244 }
248245 }
@@ -279,7 +276,7 @@ pipeline {
279276 echo "Jenkinsfile is up to date."
280277 fi
281278 # Stage 2 - Delete old templates
282- OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n .github/ISSUE_TEMPLATE/issue.bug.md\n .github/ISSUE_TEMPLATE/issue.feature.md"
279+ 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 "
283280 for i in ${OLD_TEMPLATES}; do
284281 if [[ -f "${i}" ]]; then
285282 TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -296,7 +293,7 @@ pipeline {
296293 git commit -m 'Bot Updating Templated Files'
297294 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
298295 echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
299- echo "Deleting old templates"
296+ echo "Deleting old and deprecated templates"
300297 rm -Rf ${TEMPDIR}
301298 exit 0
302299 else
0 commit comments