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

Yaml validator can not find error if the blank line is missing between steps #3

Open
nCodefresh opened this issue Nov 24, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@nCodefresh
Copy link

version: '1.0'
steps:
  freestyle_step:
    image: node:latest
    working-directory: ${{initial-clone}}
    commands:
        - >-
         awerty dfgdfgdfgdf
          sdfsdfsdf
        - npm -v
    when:
      condition:
        all:
          name: "'${{CF_BRANCH}}' == 'condition-step'"
          noSkipCiInCommitMessage: 'includes(lower("${{CF_COMMIT_MESSAGE}}"), "skip ci") == false'
          masterBranch: '"${{CF_BRANCH}}" == "master"'
  composition_step:
      description: Attempting to run as part of composition.
      type: composition
      composition:
        version: '2'
        services:
          app:
            image: 'advance512demo/demochat:master'
            ports:
              - 5000
            depends_on:
              - mongo
          mongo:
            image: mongo
      composition-candidates:
        main:
          image: nhoag/curl
          command: bash -c "sleep 20 && curl http://app:5000/" | echo 'works'
      when:
        condition:
          any:
            noSkipCiInCommitMessage: 'includes(lower("${{CF_COMMIT_MESSAGE}}"), "skip ci") == false'
            notFeatureBranch: 'match("${{CF_BRANCH}}", "^FB-", true) == false'

Result: Rejoice! Your Codefresh YAML is valid!
version of cyv: 0.0.5

@noamt noamt added the bug label Nov 27, 2016
@noamt noamt self-assigned this Nov 27, 2016
@noamt noamt modified the milestones: 0.0.7, 0.0.8 Nov 27, 2016
@noamt noamt modified the milestones: 0.0.9, 0.0.8 Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants