Skip to content

fly -t TARGET builds -p pipeline --team OTHER_TEAM returns pipeline/job not found #8722

@eitah

Description

@eitah

Summary

We have several concourse teams at my company and use the --team option to issue a command from, say, the main team and see pipelines in other concourse teams. However for fly builds the --team arg is accepted but always returns pipeline/job not found unless your team matches the team of the builds requested.

Steps to reproduce

Make a pipeline 'my-pipeline' in 'other' target.
From a fly cli target with team main, issue fly -t main --team other builds -p my-pipeline

Expected results

builds would be returned.

Actual results

Pipeline/job not found

Additional context

As a workaround we issue the below bash script

for team in `fly -t main teams --json | jq -r '.[].name'` ; do fly -t $team login -b --concourse-url my-concourse --team-name=$team ; done

then just run the builds command per usual

Triaging info

  • Concourse version:
$ fly -v
7.9.1
  • Browser (if applicable):
  • Did this used to work? unsure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions