Skip to content

Commit

Permalink
Fix deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adkerr committed Dec 19, 2019
1 parent 2fb452f commit 6057103
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2401,7 +2401,7 @@ def _build_trident(String name, String ssh_options, Map spec) {
)

// Tag the release
def release_name = 'v' + env.TRIDENT_VERSION
def release_name = 'v' + tag
try {
echo "Creating script to tag the release"

Expand Down Expand Up @@ -2462,6 +2462,7 @@ def _build_trident(String name, String ssh_options, Map spec) {

sh (label: "Sleep", script: "sleep 1")

// Upload tools repo
_scp(
ssh_options,
'root',
Expand All @@ -2473,6 +2474,18 @@ def _build_trident(String name, String ssh_options, Map spec) {
true
)

// Upload github token
_scp(
ssh_options,
'root',
ip_address,
"${env.HOME}/.github.py",
".",
true,
true,
true
)

if (env.BUILD_TYPE == 'stable') {

def tarball = "trident-installer-${env.TRIDENT_VERSION}.tar.gz"
Expand Down Expand Up @@ -2524,7 +2537,7 @@ def _build_trident(String name, String ssh_options, Map spec) {
"--repository $env.TRIDENT_PUBLIC_GITHUB_REPO " +
"--user $env.GITHUB_USERNAME " +
"--prerelease " +
"--release-name ${release_name}-${env.BUILD_TYPE}.${env.TRIDENT_REVISION} " +
"--release-name $release_name " +
"--release-hash $commit " +
"--release-tarball $tarball'"
)
Expand Down

0 comments on commit 6057103

Please sign in to comment.