Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for simplifying everything + handle no CI_URL #295

Open
wants to merge 1 commit into
base: ci-in-release-notes
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 1 addition & 26 deletions roles/generate-jenkins/templates/Jenkinsfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1156,32 +1156,7 @@ pipeline {
echo '{"tag_name":"'${META_TAG}'",\
"target_commitish": "{{ ls_branch }}",\
"name": "'${META_TAG}'",\
{% if custom_version_command is defined %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
{% endif %}
{% if external_type == "github_devel" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
{% elif external_type == "github_stable" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
{% elif external_type == "alpine_repo" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Repo Changes:**\\n\\n' > start
{% elif external_type == "custom_json" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
{% elif external_type == "deb_repo" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Repo Changes:**\\n\\n' > start
{% elif external_type == "external_blob" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
{% elif external_type == "github_commit" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
{% elif external_type == "gitlab_commit" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_GITLAB_PROJ}' Changes:**\\n\\n' > start
{% elif external_type == "npm_version" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**NPM Changes:**\\n\\n' > start
{% elif external_type == "os" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**OS Changes:**\\n\\n' > start
{% elif external_type == "pip_version" %}
"body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**PIP Changes:**\\n\\n' > start
{% elif external_type == "custom" %} "body": "**CI Report:**\\n\\n'${CI_URL}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Custom Changes:**\\n\\n' > start{% endif %}
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
printf '","draft": false,"prerelease": {% if release_type == "stable" %}false{% elif release_type == "prerelease" %}true{% endif %}}' >> releasebody.json
paste -d'\\0' start releasebody.json > releasebody.json.done
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
Expand Down