@@ -56,11 +56,11 @@ jobs:
5656 - name : Compute build number for archival
5757 id : build_number
5858 run : |
59- $lastJenkins = 1976 # The last patch build from jenkins
59+ $lastJenkins = 2000 # The last patch build from jenkins, rounded to the next hundred
6060 $githubRun = $env:GITHUB_RUN_NUMBER
6161 $combined = $lastJenkins + $githubRun
6262 echo "Calculated build number: $combined"
63- echo "BuildVersionSegment =$combined" >> $env:GITHUB_ENV
63+ echo "RELEASE_BUILD_NUMBER =$combined" >> $env:GITHUB_ENV
6464
6565 - name : Checkout Files
6666 uses : actions/checkout@v4
@@ -253,7 +253,6 @@ jobs:
253253 env :
254254 BASE_RELEASE : ${{ inputs.base_release || 'build-1155' }}
255255 BASE_BUILD_NUMBER : ${{ inputs.base_build_number || '' }}
256- BUILD_VERSION_SEGMENT : ${{ env.BuildVersionSegment }}
257256 run : |
258257 # The github action base-installer-cd will make releases with a tag build-[build number]
259258 # manually created releases with Jenkins artifacts need to use existing tags so we need
@@ -266,7 +265,7 @@ jobs:
266265 }
267266 $baseBuildNumber = "_b$($env:BASE_RELEASE -replace '^build-','')"
268267 } else {
269- throw "Must have a base_build_number nor a valid base_release to support automatic updating"
268+ throw "Must have a base_build_number or a valid base_release to support automatic updating"
270269 }
271270 $patchPath = "${{ steps.find_patch.outputs.patch_file }}"
272271 if (-not (Test-Path $patchPath)) {
@@ -279,7 +278,7 @@ jobs:
279278 throw "Unexpected patch filename format: $patchFile"
280279 }
281280 $patchWithBaseInName = "$($Matches[1])${baseBuildNumber}$($Matches[2])"
282- $s3Key = "jobs/FieldWorks-Win-all-Release-Patch/$($env:BUILD_VERSION_SEGMENT )/$patchWithBaseInName"
281+ $s3Key = "jobs/FieldWorks-Win-all-Release-Patch/$($env:RELEASE_BUILD_NUMBER )/$patchWithBaseInName"
283282 aws s3 cp $patchPath "s3://flex-updates/$s3Key"
284283 Write-Host "Uploaded to s3://flex-updates/$s3Key"
285284
0 commit comments