bitrise-workflow-editor icon indicating copy to clipboard operation
bitrise-workflow-editor copied to clipboard

Local workflow editor not displaying valid bitrise.yml file

Open asos-chrisblackmore opened this issue 6 years ago • 8 comments

When creating a new workflow on bitrise.io from an empty template, the following (word for word, space for space) is added to bitrise.yml:

  workflow-test:
    steps:
    - [email protected]: {}
    meta:
      bitrise.io:
        stack: osx-xcode-10.1.x

Notice that this includes a workflow specific stack (osx-xcode-10.1.x) which was selected from the dropdown available under the Stack tab on bitrise.io.

However, when attempting to use this bitrise.yml file with the local workflow editor I am presented with an empty editor - Workflow and Triggers tabs are empty:

screenshot 2019-02-04 at 16 21 08

In Terminal I receive the following:

Exception: RespondWith: Error: json: unsupported type: map[interface {}]interface {}
 => GET: /api/bitrise-yml.json - 18.434831ms ()
 => POST: /api/connection - 526ns ()

However, making a small change to the workflow in the local bitrise.yml file - namely aligning stack with bitrise.io under meta, everything seems to work:

  workflow-test:
    steps:
    - [email protected]:
        inputs:
        - content: '# ruby ./path/to/script.rb'
    meta:
      bitrise.io:
      stack: osx-xcode-10.1.x
screenshot 2019-02-04 at 16 24 16

I'm not entirely sure if this is an issue with the workflow editor, or that when selecting a workflow specific stack inserts incorrect information into the yml file on bitrise.io.

Here's the full bitrise.yml that I'm working with:

format_version: "4"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: develop
  workflow: workflow-test
workflows:
  workflow-test:
    steps:
    - [email protected]:
        inputs:
        - content: '# ruby ./path/to/script.rb'
    meta:
      bitrise.io:
        stack: osx-xcode-10.1.x

asos-chrisblackmore avatar Feb 04 '19 16:02 asos-chrisblackmore

Hi @asos-chrisblackmore! Thanks for your report, and sorry for the inconvenience! We started investigating the issue, will get back here with any updates we have!

bitce avatar Feb 06 '19 10:02 bitce

Had the same issue and aligning stack fixed it for me as well.

spenrose avatar Jul 22 '19 20:07 spenrose

Same here. Any updates about this issue? @bitce

keima avatar Dec 26 '19 13:12 keima

Same, anything since last year @bitce ?

leotm avatar Feb 11 '20 15:02 leotm

Hey there! Just wanted to let you know that there's no update yet, as we have tons of updates we are planning on implementing, and unfortunately at a point we have to prioritise one over the other, but rest assured that this is still in the works 🙂

Roland-Bak avatar Feb 12 '20 10:02 Roland-Bak

Same issue -- aligning stack also fixed

jlo1 avatar Mar 25 '20 00:03 jlo1

Hello @asos-chrisblackmore, @spenrose, @keima, @leotm, @jlo1 , Using the latest version of Bitrise CLI (1.42.0) should solve this issue. Can you please confirm that the issue no longer persists on your side? Thanks.

lpusok avatar Sep 01 '20 15:09 lpusok

its not work in 1.37 but worked in 1.47. Thanks.

nilinov avatar Jul 02 '21 03:07 nilinov