Renamed apk is not visible as artifacts in slack notification for download #2155
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceI'm using workflow editor and added a post-build script, to rename the apk file and added it in artifacts but it is not visible in slack notification. here is my script: #!/bin/sh
set -e
set -x
echo "renaming apk file to $CM_TAG";
if [ -n "$CM_TAG" ]; then
mv build/app/outputs/flutter-apk/app-qa-release.apk build/app/outputs/flutter-apk/$CM_TAG.apk;
cp build/app/outputs/flutter-apk/$CM_TAG.apk "$CM_EXPORT_DIR";
fi
Expected resultsNotification should have link for apk under artifacts Actual resultsslack notificaiton without script
notification after renaming the file using scriptBuild id (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @hashirshoaeb, unfortunately this won't be possible with the |
Beta Was this translation helpful? Give feedback.
Hey @hashirshoaeb, unfortunately this won't be possible with the
Workflow editor
.The reason is that artifacts are collected right after the build steps are completed, in comparison to
YAML
where artifacts are collected before publishing them so there is a chance to run a pre-publish script. However, with the Workflow editor, the sequence of steps doesn't allow for such pre-publish scripting, which is why you're not seeing the desired results in the Slack notification