Commit a80c1ab0 authored by Corbel Alex's avatar Corbel Alex
Browse files

modif yaml CI

parent 1440a7d4
Pipeline #127709484 failed with stages
in 15 minutes and 35 seconds
......@@ -652,7 +652,7 @@ deploy-production-metadata:
# Calculate next version number.
# If the latest package version is released then
# we need to increment the major or minor version numbers.
local cmd="sfdx force:package:version:list --targetdevhubusername $devhub_username --packages $package_id --concise --json" && (echo $cmd >&2)
local cmd="sfdx force:package:version:list --targetdevhubusername $devhub_username --packages $package_id --concise --released --json" && (echo $cmd >&2)
local output=$($cmd) && (echo $output | jq '.' >&2)
local last_package_version=$(jq '.result | sort_by(-.MajorVersion, -.MinorVersion, -.PatchVersion, -.BuildNumber) | .[0]' <<< $output)
local is_released=$(jq -r '.IsReleased' <<< $last_package_version)
......@@ -668,7 +668,7 @@ deploy-production-metadata:
echo "version_number=$version_number" >&2
# Create a new package version
cmd="sfdx force:package:version:create --targetdevhubusername $devhub_username --package $package_id --versionnumber $version_number --installationkeybypass --wait 10 --json" && (echo $cmd >&2)
cmd="sfdx force:package:version:create --targetdevhubusername $devhub_username --package $package_id --installationkeybypass --wait 10 --json" && (echo $cmd >&2)
output=$($cmd) && (echo $output | jq '.' >&2)
local subscriber_package_version_id=$(jq -r '.result.SubscriberPackageVersionId' <<< $output)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment