Skip to content

Commit

Permalink
Move to env
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jan 9, 2025
1 parent ff288fe commit e740f23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 10 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,11 @@ def dockerLogin(){
def triggerDarwinBinariesSigningWorkflow() {
withCredentials([string(credentialsId: 'eyalde-github-access-token', variable: "GITHUB_ACCESS_TOKEN")]) {
stage("Sign MacOS binaries") {
sh('chmod +x $repo/build/apple_release/scripts/trigger-sign-mac-OS-workflow.sh')
sh('$repo/build/apple_release/scripts/trigger-sign-mac-OS-workflow.sh $cliExecutableName $releaseVersion $GITHUB_ACCESS_TOKEN')
sh 'chmod +x $repo/build/apple_release/scripts/trigger-sign-mac-OS-workflow.sh'
sh """
export GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN}
$repo/build/apple_release/scripts/trigger-sign-mac-OS-workflow.sh $cliExecutableName $releaseVersion $goarch
"""
}
}
}
Expand All @@ -550,7 +553,10 @@ def triggerDarwinBinariesSigningWorkflow() {
*/
def downloadDarwinSignedBinaries(goarch) {
withCredentials([string(credentialsId: 'eyalde-github-access-token', variable: "GITHUB_ACCESS_TOKEN")]) {
sh ('chmod +x $repo/build/apple_release/scripts/download-signed-mac-OS-binaries.sh')
sh ('$repo/build/apple_release/scripts/download-signed-mac-OS-binaries.sh $cliExecutableName $releaseVersion $goarch $GITHUB_ACCESS_TOKEN')
sh 'chmod +x $repo/build/apple_release/scripts/download-signed-mac-OS-binaries.sh'
sh """
export GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN}
$repo/build/apple_release/scripts/download-signed-mac-OS-binaries.sh $cliExecutableName $releaseVersion $goarch
"""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ releaseVersion=$2
# The architecture of the macOS binary to be downloaded - amd64 or arm64
goarch=$3

# GitHub Access Token for authentication
GITHUB_ACCESS_TOKEN=$3
# GitHub Access Token for authentication from ENV

# Function to retrieve the specific artifact URL with retries
get_specific_artifact_url_with_retries() {
Expand Down
4 changes: 2 additions & 2 deletions build/apple_release/scripts/trigger-sign-mac-OS-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ cliExecutableName=$1
# The version of the release being processed
releaseVersion=$2

# GitHub Access Token for authentication
GITHUB_ACCESS_TOKEN=$3
# GitHub Access Token for authentication from ENV



# Trigger
Expand Down

0 comments on commit e740f23

Please sign in to comment.