Arthur Pro
Arthur Pro

Reputation: 31

How to specify a workspace name as a parameter when creating a Tekton Trigger

I'm new to Tekton and recently stabled upon the following question:

I have a pipeline which I manually run by issuing the following CLI command:

pipeline start pipeline \
  -p url="https://github.com/..." \
  -p branch="main" \
  -w name=pipeline-workspace,claimName=pipelinerun-pvc

Now I would like to run the same pipeling using an event based trigger, I initiate a pipeline run using cURL like this:

curl -X POST http://localhost:8090 \
  -H 'Content-Type: application/json' \
  -d '{"ref":"main","repository":{"repo-url":"https://github.com/..."}}'

My question is, how can I specify the workspace, when using cURL and get it passed on to the pipeline, similarly when I had the -w name=pipeline-workspace,claimName=pipelinerun-pvc line using CLI?

Your help would be very appreciated.

Upvotes: 1

Views: 22

Answers (0)

Related Questions