How to construct urls for job names for downloading latest artifacts?

How to construct urls for job names for downloading latest artifacts?

I am using the downloading latest artifact feature.

For me it is not clear, how the job name I need to pass is created: my job name contains e.g. spaces, equal signs and brackets:

build win: [USE_PYTHON=ON]

I know that spaces are replaced by +-signs but what about the others characters?

Changing the job name is not an option because I use the matrix-feature and it creates names like these.

Thanks a lot for your help!

  • What version are you on? Are you using self-managed or GitLab.com?
    • GitLab (Hint: /help): 13.5.1, self-managed
build win:
  ...
  parallel:
    matrix:
      - USE_PYTHON: ["USE_PYTHON=ON", "USE_PYTHON=OFF"]

Here is the answer: https://stackoverflow.com/a/64535549/80480

It is just a regular URL Encoding (Percent Encoding).

So build win: [USE_PYTHON=ON] translates to build+win%3A+%5BUSE_PYTHON%3DON%5D.