Skip to content

How to pass params to a remote (git) pipeline? #7066

Answered by vdemeester
james-callahan asked this question in Q&A
Discussion options

You must be logged in to vote

@james-callahan the same way as you pass it using "in-cluster" pipeline references. Something like the following.

  resourcetemplates:
    - apiVersion: tekton.dev/v1
      kind: PipelineRun
      metadata:
        # namespace: tekton-ci
        generateName: github-run-
      spec:
        params:
            - name: hello
              value: world
        pipelineRef:
          resolver: git
          params:
            - name: org
              value: $(tt.params.githuborg)
            - name: repo
              value: $(tt.params.githubrepository)
            - name: revision
              value: $(tt.params.gitrevision)
            - name: pathInRepo
              value: /tekton-pi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by james-callahan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants