-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from linuxserver/RELEASE_BRANCH
Release branch
- Loading branch information
Showing
8 changed files
with
119 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,14 @@ pipeline { | |
EXT_GIT_BRANCH = 'master' | ||
EXT_USER = 'janeczku' | ||
EXT_REPO = 'calibre-web' | ||
BUILD_VERSION_ARG = 'CALIBRE_COMMIT' | ||
BUILD_VERSION_ARG = 'CALIBREWEB_RELEASE' | ||
LS_USER = 'linuxserver' | ||
LS_REPO = 'docker-calibre-web' | ||
CONTAINER_NAME = 'calibre-web' | ||
DOCKERHUB_IMAGE = 'linuxserver/calibre-web' | ||
DEV_DOCKERHUB_IMAGE = 'lsiodev/calibre-web' | ||
PR_DOCKERHUB_IMAGE = 'lspipepr/calibre-web' | ||
DIST_IMAGE = 'alpine' | ||
DIST_IMAGE = 'ubuntu' | ||
MULTIARCH='true' | ||
CI='true' | ||
CI_WEB='true' | ||
|
@@ -102,21 +102,21 @@ pipeline { | |
/* ######################## | ||
External Release Tagging | ||
######################## */ | ||
// If this is a github commit trigger determine the current commit at head | ||
stage("Set ENV github_commit"){ | ||
// If this is a stable github release use the latest endpoint from github to determine the ext tag | ||
stage("Set ENV github_stable"){ | ||
steps{ | ||
script{ | ||
env.EXT_RELEASE = sh( | ||
script: '''curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha' | cut -c1-8 ''', | ||
script: '''curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''', | ||
returnStdout: true).trim() | ||
} | ||
} | ||
} | ||
// If this is a github commit trigger Set the external release link | ||
stage("Set ENV commit_link"){ | ||
// If this is a stable or devel github release generate the link for the build message | ||
stage("Set ENV github_link"){ | ||
steps{ | ||
script{ | ||
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/commit/' + env.EXT_RELEASE | ||
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE | ||
} | ||
} | ||
} | ||
|
@@ -605,7 +605,7 @@ pipeline { | |
"tagger": {"name": "LinuxServer Jenkins","email": "[email protected]","date": "'${GITHUB_DATE}'"}}' ''' | ||
echo "Pushing New release for Tag" | ||
sh '''#! /bin/bash | ||
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq '. | .commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json | ||
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq '. |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json | ||
echo '{"tag_name":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\ | ||
"target_commitish": "master",\ | ||
"name": "'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.