-
-
Notifications
You must be signed in to change notification settings - Fork 31
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 #57 from linuxserver/development-prerelease
build pre-releases instead of commits
- Loading branch information
Showing
8 changed files
with
30 additions
and
29 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
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 |
---|---|---|
|
@@ -27,8 +27,6 @@ pipeline { | |
DEV_DOCKERHUB_IMAGE = 'lsiodev/bazarr' | ||
PR_DOCKERHUB_IMAGE = 'lspipepr/bazarr' | ||
DIST_IMAGE = 'alpine' | ||
DIST_TAG = '3.8' | ||
DIST_PACKAGES = 'none' | ||
MULTIARCH='true' | ||
CI='true' | ||
CI_WEB='true' | ||
|
@@ -103,23 +101,23 @@ pipeline { | |
/* ######################## | ||
External Release Tagging | ||
######################## */ | ||
// If this is a github commit trigger determine the current commit at head | ||
stage("Set ENV github_commit"){ | ||
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 ''', | ||
returnStdout: true).trim() | ||
} | ||
} | ||
// If this is a devel github release use the first in an array from github to determine the ext tag | ||
stage("Set ENV github_devel"){ | ||
steps{ | ||
script{ | ||
env.EXT_RELEASE = sh( | ||
script: '''curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases | jq -r '.[0] | .tag_name' ''', | ||
returnStdout: true).trim() | ||
} | ||
} | ||
} | ||
// If this is a github commit trigger Set the external release link | ||
stage("Set ENV commit_link"){ | ||
steps{ | ||
script{ | ||
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/commit/' + env.EXT_RELEASE | ||
} | ||
} | ||
// 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 + '/releases/tag/' + env.EXT_RELEASE | ||
} | ||
} | ||
} | ||
// Sanitize the release tag and strip illegal docker or github characters | ||
stage("Sanitize tag"){ | ||
|
@@ -748,7 +746,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 | jq '.[0] |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json | ||
echo '{"tag_name":"'${META_TAG}'",\ | ||
"target_commitish": "development",\ | ||
"name": "'${META_TAG}'",\ | ||
|
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