@@ -56,7 +56,7 @@ pipeline {
5656 env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
5757 env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
5858 env. PULL_REQUEST = env. CHANGE_ID
59- 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'
59+ 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'
6060 }
6161 script{
6262 env. LS_RELEASE_NUMBER = sh(
@@ -230,17 +230,14 @@ pipeline {
230230 }
231231 sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
232232 sh ''' #! /bin/bash
233- set -e
234- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
235233 docker run --rm \
236- -e DESTINATION=\" ${IMAGE}/${META_TAG}/shellcheck-result.xml\" \
237- -e FILE_NAME="shellcheck-result.xml" \
238- -e MIMETYPE="text/xml" \
239- -v ${WORKSPACE}:/mnt \
240- -e SECRET_KEY=\" ${S3_SECRET}\" \
241- -e ACCESS_KEY=\" ${S3_KEY}\" \
242- -t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \
243- python /upload.py'''
234+ -v ${WORKSPACE}:/mnt \
235+ -e AWS_ACCESS_KEY_ID=\" ${S3_KEY}\" \
236+ -e AWS_SECRET_ACCESS_KEY=\" ${S3_SECRET}\" \
237+ ghcr.io/linuxserver/baseimage-alpine:3.17 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
238+ apk add --no-cache py3-pip && \
239+ pip install s3cmd && \
240+ s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml" || :'''
244241 }
245242 }
246243 }
@@ -277,7 +274,7 @@ pipeline {
277274 echo "Jenkinsfile is up to date."
278275 fi
279276 # Stage 2 - Delete old templates
280- OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n .github/ISSUE_TEMPLATE/issue.bug.md\n .github/ISSUE_TEMPLATE/issue.feature.md"
277+ 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 "
281278 for i in ${OLD_TEMPLATES}; do
282279 if [[ -f "${i}" ]]; then
283280 TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -294,7 +291,7 @@ pipeline {
294291 git commit -m 'Bot Updating Templated Files'
295292 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
296293 echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
297- echo "Deleting old templates"
294+ echo "Deleting old and deprecated templates"
298295 rm -Rf ${TEMPDIR}
299296 exit 0
300297 else
0 commit comments