Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local workflow editor not displaying valid bitrise.yml file #358

Open
asos-chrisblackmore opened this issue Feb 4, 2019 · 8 comments
Open

Comments

@asos-chrisblackmore
Copy link

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:
    - script@1.1.5: {}
    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:
    - script@1.1.5:
        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:
    - script@1.1.5:
        inputs:
        - content: '# ruby ./path/to/script.rb'
    meta:
      bitrise.io:
        stack: osx-xcode-10.1.x
@bitce
Copy link

bitce commented Feb 6, 2019

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!

@spenrose
Copy link

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

@keima
Copy link

keima commented Dec 26, 2019

Same here. Any updates about this issue? @bitce

@leotm
Copy link

leotm commented Feb 11, 2020

Same, anything since last year @bitce ?

@Roland-Bak
Copy link

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 🙂

@jlo1
Copy link

jlo1 commented Mar 25, 2020

Same issue -- aligning stack also fixed

@lpusok
Copy link
Contributor

lpusok commented Sep 1, 2020

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.

@nilinov
Copy link

nilinov commented Jul 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants