How to pass params to a remote (git) pipeline? #7066
Answered
by
vdemeester
james-callahan
asked this question in
Q&A
-
e.g. using the The resourcetemplates:
- apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
# namespace: tekton-ci
generateName: github-run-
spec:
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-pipeline.yaml So how can I pass params to my pipeline? e.g. if this was saved at apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: mycoolpipeline
spec:
params:
- name: hello
type: string
description: much tekton
tasks:
- name: hello
taskSpec:
steps:
- image: archlinux:base@sha256:b29dab0d5f362cfe2ed4662c46f27855681d56fb548fd2f6d927fd573131178a
script: echo "hello $(params.hello)" |
Beta Was this translation helpful? Give feedback.
Answered by
vdemeester
Aug 24, 2023
Replies: 1 comment
-
@james-callahan the same way as you pass it using "in-cluster" pipeline references. Something like the following.
|
Beta Was this translation helpful? Give feedback.
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
@james-callahan the same way as you pass it using "in-cluster" pipeline references. Something like the following.