sorry my bad need a way to grab the values from appcenter with fastlane-plugin-appcenter like this
appcenter_fetch_version_number(
api_token: ENV["APPCENTER_UPLOAD_API_TOKEN_2023"],
owner_name: "<appcenter account name of the owner of the app (username or organization URL name)>",
app_name: "<appcenter app name (as seen in app URL)>",
version: "a specific version to get the last release for" # optional, don't set this value to get the last upload of all versions
)
and with this using fast file
teams_card(
workflow_url: 'https://your.logic.azure.com:443/workflows/1234567890',
text: 'A new release is ready for testing!',
image: 'https://raw.githubusercontent.com/fastlane/boarding/master/app/assets/images/fastlane.png',
image_title: 'Fastlane',
]
)
and include the id or version in the text to be something like text: $id release is ready to test
where id Is the id from this response
{"id"=>1, "version"=>"1.0.0", "build_number"=>"1.0.0.1234"} # iOS apps contain the full version plus build number due to the way that Apple use CFBundleVersion for this value
{"id"=>588, "version"=>"1.2.0", "build_number"=>"1615"}
this are just examples of the documentation need to set real values.
though this is not clear for me quote the plugging documentation
The appcenter_fetch_version_number
returns a hash that contains the id, the version number, and the build number. The version corresponds to the short_version
and the build number to the version
known by App Center for a given release:
I think this approach will be more simple than using the orb that is working at this time but will imply to parse the file looking for the lines needed.
also the orb is set to something like this
jobs:
build-and-test:
executor: main-executor
# Define the steps required to build the project.
steps:
# Get the code from the VCS provider.
- checkout
- reveal_secret
- install_gems
# Run tests.
- run:
name: Run tests
command: bundle exec fastlane test
- msteams/notify:
message: Dev build
webhook: https://xxx.webhook.office.com/webhookb2/xxxxx/IncomingWebhook/xxxx
for build and test and for distribution is set to
steps:
- checkout
- reveal_secret
- install_gems
- decode_certificates
- setup_provisioning_profiles
- run:
name: Build sign and deploy
command: bundle exec fastlane Builds
- msteams/status:
failure_message: ':red_circle: A $CIRCLE_JOB job has failed!'
success_message: ':tada: A $CIRCLE_JOB job has succeeded Build uploaded !'
webhook: webhookurl