@@ -56,7 +56,7 @@ pipeline {
56
56
env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
57
57
env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
58
58
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'
60
60
}
61
61
script{
62
62
env. LS_RELEASE_NUMBER = sh(
@@ -230,17 +230,14 @@ pipeline {
230
230
}
231
231
sh ''' curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
232
232
sh ''' #! /bin/bash
233
- set -e
234
- docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
235
233
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" || :'''
244
241
}
245
242
}
246
243
}
@@ -277,7 +274,7 @@ pipeline {
277
274
echo "Jenkinsfile is up to date."
278
275
fi
279
276
# 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 "
281
278
for i in ${OLD_TEMPLATES}; do
282
279
if [[ -f "${i}" ]]; then
283
280
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -294,7 +291,7 @@ pipeline {
294
291
git commit -m 'Bot Updating Templated Files'
295
292
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
296
293
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
297
- echo "Deleting old templates"
294
+ echo "Deleting old and deprecated templates"
298
295
rm -Rf ${TEMPDIR}
299
296
exit 0
300
297
else
0 commit comments