How pipeline is named?


#1

I’m following the basic HelloWorld tutorial https://concoursetutorial.com/basics/task-hello-world/ to experiment Concourse. I copied the basic pipeline YAML:

jobs:
- name: job-hello-world
  public: true
  plan:
  - task: hello-world
    config:
      platform: linux
      image_resource:
        type: docker-image
        source: {repository: busybox}
      run:
        path: echo
        args:
          - hello world

This has no problem to work. But my question is why this pipeline is named ‘hello-world’? Only thing I can see is that this pipeline has a task named ‘hello-world’. If the name is taken from task name, then how about if a pipeline has multiple tasks?


#2

Hello evanchaoli, please edit your post, it is not very readable at the moment.

Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ````` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

To answer your question, the pipeline name is given by fly set-pipeline -p XXX:

fly set-pipeline -h
...
      -p, --pipeline=               Pipeline to configure
      -c, --config=                 Pipeline configuration file

this also means that you can use the same configuration file and instantiate multiple pipelines by changing the -p option.


#3

Thanks for the answer. I have edited my post.