@@ -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(
@@ -228,17 +228,14 @@ pipeline {
228228 }
229229 sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
230230 sh ''' #! /bin/bash
231- set -e
232- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
233231 docker run --rm \
234- -e DESTINATION=\" ${IMAGE}/${META_TAG}/shellcheck-result.xml\" \
235- -e FILE_NAME="shellcheck-result.xml" \
236- -e MIMETYPE="text/xml" \
237- -v ${WORKSPACE}:/mnt \
238- -e SECRET_KEY=\" ${S3_SECRET}\" \
239- -e ACCESS_KEY=\" ${S3_KEY}\" \
240- -t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \
241- python /upload.py'''
232+ -v ${WORKSPACE}:/mnt \
233+ -e AWS_ACCESS_KEY_ID=\" ${S3_KEY}\" \
234+ -e AWS_SECRET_ACCESS_KEY=\" ${S3_SECRET}\" \
235+ ghcr.io/linuxserver/baseimage-alpine:3.17 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
236+ apk add --no-cache py3-pip && \
237+ pip install s3cmd && \
238+ s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml" || :'''
242239 }
243240 }
244241 }
@@ -275,7 +272,7 @@ pipeline {
275272 echo "Jenkinsfile is up to date."
276273 fi
277274 # Stage 2 - Delete old templates
278- OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n .github/ISSUE_TEMPLATE/issue.bug.md\n .github/ISSUE_TEMPLATE/issue.feature.md"
275+ 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 "
279276 for i in ${OLD_TEMPLATES}; do
280277 if [[ -f "${i}" ]]; then
281278 TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -292,7 +289,7 @@ pipeline {
292289 git commit -m 'Bot Updating Templated Files'
293290 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
294291 echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
295- echo "Deleting old templates"
292+ echo "Deleting old and deprecated templates"
296293 rm -Rf ${TEMPDIR}
297294 exit 0
298295 else
@@ -652,7 +649,7 @@ pipeline {
652649 -e BASE=\" ${DIST_IMAGE}\" \
653650 -e SECRET_KEY=\" ${S3_SECRET}\" \
654651 -e ACCESS_KEY=\" ${S3_KEY}\" \
655- -e DOCKER_ENV=\" ${CI_DOCKERENV}\" \
652+ -e DOCKER_ENV=\" LSIO_FIRST_PARTY=true| ${CI_DOCKERENV}\" \
656653 -e WEB_SCREENSHOT=\" ${CI_WEB}\" \
657654 -e WEB_AUTH=\" ${CI_AUTH}\" \
658655 -e WEB_PATH=\" ${CI_WEBPATH}\" \
0 commit comments