Skip to content

Adding a / to a job name causes the UI to remove the "Trigger Build" button. #1877

Closed

Description

@simonjohansson

Hello!

Concourse version 3.7.0.

If you have a slash in the name of a job, you cannot trigger it from the UI.

screen shot 2017-12-06 at 17 20 26

If I replace said /, with say a .

screen shot 2017-12-06 at 17 23 28

The trigger button is there as expected.

Triggering via CLI still works as expected

$  fly -t ci trigger-job -j "asdf/ci/show-env.sh"
started asdf/ci/show-env.sh #4

Manifest

---
resources:
- name: test-repo
  type: git
  source:
    uri: https://github.com/simonjohansson/test-repo.git

jobs:
- name: ci/show-env.sh
  plan:
  - get: test-repo
    trigger: true
  - task: ci/show-env.sh
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: ubuntu
          tag: latest
      run:
        path: ./ci/show-env.sh
        dir: test-repo
      inputs:
      - name: test-repo

Activity

  1. mmb commented on Jul 6, 2018

    @mmb
    Contributor

    The root cause for is the slash makes the builds endpoint and the jobs endpoint return 404.

    If the job is called a/b it will request:

    https://concourse/api/v1/teams/main/pipelines/p1/jobs/a/b/builds
    https://concourse/api/v1/teams/main/pipelines/p1/jobs/a/b

    It should escape the slash when building these URLs. It is already correctly escaping spaces in job names.

    Would you accept a PR for this?

  2. vito commented on Mar 12, 2019

    @vito
    Contributor

    Folding into #1906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions