@@ -57,7 +57,7 @@ pipeline {
57
57
env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
58
58
env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
59
59
env. PULL_REQUEST = env. CHANGE_ID
60
- env. TEMPLATED_FILES = ' Jenkinsfile README.md LICENSE ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.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/external_trigger.yml ./.github/workflows/package_trigger.yml'
60
+ env. TEMPLATED_FILES = ' Jenkinsfile README.md LICENSE .editorconfig . /.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.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/external_trigger.yml ./.github/workflows/package_trigger.yml'
61
61
}
62
62
script{
63
63
env. LS_RELEASE_NUMBER = sh(
@@ -261,7 +261,6 @@ pipeline {
261
261
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
262
262
cd ${TEMPDIR}/repo/${LS_REPO}
263
263
git checkout -f master
264
- cd ${TEMPDIR}/docker-${CONTAINER_NAME}
265
264
for i in ${TEMPLATES_TO_DELETE}; do
266
265
git rm "${i}"
267
266
done
@@ -522,6 +521,15 @@ pipeline {
522
521
apt list -qq --installed | sed "s#/.*now ##g" | cut -d" " -f1 > /tmp/package_versions.txt && \
523
522
sort -o /tmp/package_versions.txt /tmp/package_versions.txt && \
524
523
chmod 777 /tmp/package_versions.txt'
524
+ elif [ "${DIST_IMAGE}" == "fedora" ]; then
525
+ docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
526
+ rpm -qa > /tmp/package_versions.txt && \
527
+ sort -o /tmp/package_versions.txt /tmp/package_versions.txt && \
528
+ chmod 777 /tmp/package_versions.txt'
529
+ elif [ "${DIST_IMAGE}" == "arch" ]; then
530
+ docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
531
+ pacman -Q > /tmp/package_versions.txt && \
532
+ chmod 777 /tmp/package_versions.txt'
525
533
fi
526
534
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
527
535
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
@@ -795,7 +803,7 @@ pipeline {
795
803
echo '{"tag_name":"'${META_TAG}'",\
796
804
"target_commitish": "master",\
797
805
"name": "'${META_TAG}'",\
798
- "body": "**LinuxServer Changes:**\\ n\\ n'${LS_RELEASE_NOTES}'\\ n**PIP Changes:**\\ n\\ n' > start
806
+ "body": "**LinuxServer Changes:**\\ n\\ n'${LS_RELEASE_NOTES}'\\ n\\ n **PIP Changes:**\\ n\\ n' > start
799
807
printf '","draft": false,"prerelease": false}' >> releasebody.json
800
808
paste -d'\\ 0' start releasebody.json > releasebody.json.done
801
809
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
0 commit comments