codefresh-io / cli

Codefresh CLI
https://codefresh-io.github.io/cli/
MIT License
76 stars 35 forks source link

Cannot read property 'inspect' of undefined #360

Open jfowler-imb opened 5 years ago

jfowler-imb commented 5 years ago

Hello, thanks for making the codefresh CLI.

I am unable to run a simple pipeline and get this error when running. I am running with local volume and --local option.

error message

[SYSTEM]
 Message             Cannot read property 'inspect' of undefined
 Documentation Link  https://codefresh.io/docs/docs/codefresh-yaml/steps/freestyle/
 Name                TypeError
Pipeline executed successfully

codefresh cli version

v0.33.0

$ codefresh version
client version: 0.33.0

example codefresh.yml file

version: '1.0'
stages:
  - prepare
  - context
steps:
  main_clone:
    title: Cloning main repository...
    type: git-clone
    repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
    revision: '${{CF_REVISION}}'
    stage: prepare
    git: github

  context:
    title: display pipeline context
    image: alpine
    stage: context
    commands:
      - echo CF_REVISION = ${CF_REVISION}
      - echo CF_REPO_OWNER = ${CF_REPO_OWNER}
      - echo CF_REPO_NAME = ${CF_REPO_NAME}
      - echo CF_BRANCH = ${CF_BRANCH}
      - echo CF_SHORT_REVISION = ${CF_SHORT_REVISION}
      - echo NAMESPACE = ${NAMESPACE}

example codefresh cli run command with args

$ codefresh run my-project/my-pipeline \
  --local --local-volume -b feat/test-codefresh-run \
  -y .build/codefresh.yml -t my-trigger

I can run this pipeline without the error when run via the codefresh web UI.

Thanks

jfowler-imb commented 5 years ago

adding some more info here I discovered.

Running without --local-volume option got passed the error above. FWIW I am running this from the root of my repo.

robosung commented 4 years ago

I'm having the same issue using client version: 0.51.0

eloyz commented 4 years ago

Same issue

$ codefresh version
client version: 0.52.5
timlimhk commented 4 years ago

Same issue is being seen in version

codefresh version client version: 0.72.8

The running of a pipeline with --local specified alone is working fine.

Any idea if this is a bug or that the --loval-volume option is not a valid option in local mode execution?

iacou commented 3 years ago

also getting this with client version: 0.75.8