Skip to content

Commit dee8bcb

Browse files
authored
Merge pull request #360 from linuxserver/remote-changes
release notes: throw raw data into jq to create payload for curl
2 parents e572401 + 5fc431e commit dee8bcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ansible/roles/repository/templates/Jenkinsfile.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,9 +1360,9 @@ pipeline {
13601360
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
13611361
{% endif %}
13621362
{% if external_type == "github_devel" %}
1363-
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases | jq '.[0] |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
1363+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases | jq -r '.[0] |.body' > releasebody.json
13641364
{% elif external_type == "github_stable" %}
1365-
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq '. |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
1365+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. |.body' > releasebody.json
13661366
{% elif external_type == "alpine_repo" %}
13671367
echo "Updating external repo packages to ${EXT_RELEASE_CLEAN}" > releasebody.json
13681368
{% elif external_type == "custom_json" %}
@@ -1372,9 +1372,9 @@ pipeline {
13721372
{% elif external_type == "external_blob" %}
13731373
echo "External Release file changed at ${EXT_BLOB}" > releasebody.json
13741374
{% elif external_type == "github_commit" %}
1375-
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_RELEASE_CLEAN} | jq '.commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
1375+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_RELEASE_CLEAN} | jq -r '.commit.message' > releasebody.json
13761376
{% elif external_type == "gitlab_commit" %}
1377-
curl -s https://gitlab.com/api/v4/projects/${EXT_GITLAB_ID}/repository/commits/${EXT_GIT_BRANCH} | jq '. | .title' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
1377+
curl -s https://gitlab.com/api/v4/projects/${EXT_GITLAB_ID}/repository/commits/${EXT_GIT_BRANCH} | jq -r '. | .title' > releasebody.json
13781378
{% elif external_type == "npm_version" %}
13791379
echo "Updating NPM version of ${EXT_NPM} to ${EXT_RELEASE_CLEAN}" > releasebody.json
13801380
{% elif external_type == "os" %}

0 commit comments

Comments
 (0)