Using deploy-to-bitrise to expose screenshots taken with Fastlane / Snapshot

Hi!
I have 2 steps at the end of my workflow:

  • a step with Fastlane / Snapshot to take a screenshot of my app,
  • a deploy-to-bitrise step to attach the result to the build.

This is working fine, and I can see the zip file with the correct content attached to my build.

However, I’d like to post the link to the zip file to Slack, so that someone in my team can check the screenshots without checking the builds themselves.
Therefore I added a last step with Slack, giving it the resulting link with $BITRISE_PUBLIC_INSTALL_PAGE_URL (so I thought).
Unfortunately, the url is empty, because:

is_enable_public_page is set, but public download isn’t allowed for this type of file

Can you explain me why? Am I missing something?
Thanks for your help.

Here is the excerpt from the log.

±-----------------------------------------------------------------------------+

| (6) deploy-to-bitrise-io |
±-----------------------------------------------------------------------------+
| id: deploy-to-bitrise-io |
| version: 1.3.6 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2017-07-21T03:17:25-07:00 |
±-----------------------------------------------------------------------------+
| |
Configs:

  • BuildURL: https://www.bitrise.io/build/26545fc341c743c8

  • APIToken: wWrGCoYhhP1Cfn21RHIqzA

  • IsCompress: true

  • DeployPath: Snapshots/

  • NotifyUserGroups: none

  • NotifyEmailList:

  • IsPublicPageEnabled: true
    Deploying compressed Deploy directory
    List of files to deploy

  • /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/__deploy-to-bitrise-io__021829085/Snapshots.zip
    Deploying files
    Uploading file: /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/__deploy-to-bitrise-io__021829085/Snapshots.zip
    creating artifact
    file size: 7MB
    uploading artifact
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    100 7395k 0 0 100 7395k 0 6338k 0:00:01 0:00:01 --:–:-- 6336k
    100 7395k 0 0 100 7395k 0 5437k 0:00:01 0:00:01 --:–:-- 5437k
    finishing artifact
    is_enable_public_page is set, but public download isn’t allowed for this type of file
    Success
    You can find the Artifact on Bitrise, on the Build’s page: https://www.bitrise.io/build/26545fc341c743c8
    | |
    ±–±--------------------------------------------------------------±---------+
    | ✓ | deploy-to-bitrise-io | 10 sec |
    ±–±--------------------------------------------------------------±---------+

Hi @fred-adda,

Public Install Pages are only available for installable artifacts right now.

Feel free to create a #feature-request if you’d like to see it available for other, non installable artifacts, but please also include some info about how that would work/look like.

3 Likes

As a workaround you can of course send the Build’s bitrise.io URL ($BITRISE_BUILD_URL) to Slack, where the artifact can be found.

This topic was automatically closed after 3 hours. New replies are no longer allowed.