Questions tagged [tekton-pipelines]

Tekton is a powerful and flexible open-source framework for creating CI/CD systems, allowing developers to build, test, and deploy across cloud providers and on-premise systems. https://tekton.dev/

95 questions
6
votes
2 answers

Pass ENV vars from one Tekton Task step to the next?

So Tekton Pipelines allows you to create individual tasks and connect them into cloud native ci/cd pipelines. It's pretty cool. But as you can imagine, so things you would think are easy, are pretty tricky. For example, I'm trying to run a Kaniko…
4m1r
  • 12,234
  • 9
  • 46
  • 58
4
votes
1 answer

How does Tekton handle parallel tasks that access the same workspace?

In Tekton it's possible to set up a pipeline with multiple tasks that can (potentially) run in parallel and that access the same workspace. However, the documentation is not completely clear on what happens in this situation. Does it "lock" the…
Hilda Hay
  • 87
  • 3
4
votes
2 answers

Continue Tekton pipeline after failure (similar to jenkins pipeline catchError behaviour)

I have a pipeline where I want to: provision some resources, run some tests, tear down the resources. I want the tear down task, in step 3, to run regardless of whether tests passed or failed, in step 2. As far as I’ve understoood runAfter only…
gsaslis
  • 3,066
  • 2
  • 26
  • 32
3
votes
1 answer

Trigger pipeline from another pipeline in Tekton

I have 2 Tekton Pipelines A and B. I want to trigger execution of pipeline B when pipeline A completes. My current workaround is to have Task in the end of pipeline A which sends REST request to Tekton's EventListener (which is already part of my…
Sergey Prokofiev
  • 1,815
  • 1
  • 12
  • 21
3
votes
1 answer

Is there any way to pass params between task in tekton?

I have two different tasks which I want to pass the taskRun name of the first task to the second task. I wonder if there is a way I can do that.
Jane
  • 151
  • 3
  • 12
3
votes
2 answers

Tekton pipeline cannot create file in the workspace directory unless running as root

I want to create a file in the workspace directory. But I can only do that if I run as root with securityContext: runAsUser: 0 if I leave it blank or want to run as user 1001 it gives me touch: cannot touch…
3
votes
2 answers

How to wait for tekton pipelinRun conditions

I have the following code within a gitlab pipeline which results in some kind of race condition: kubectl apply -f pipelineRun.yaml tkn pipelinerun logs -f pipeline-run The tkn command immediately exits, since the pipelineRun object is not yet…
mhubig
  • 73
  • 9
2
votes
3 answers

How do I access a private Container Registry from IBM Cloud Delivery Pipeline (Tekton, dockerconfigjson)

I am trying to use a container image from a private container registry in one of my tasks. apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: echo-hello-world spec: steps: - name: echo image: de.icr.io/reporting/status:latest …
habercde
  • 161
  • 1
  • 10
2
votes
2 answers

Tekton running pipeline via passing parameter

I have a Tekton Pipeline and PipelineRun definitions. But, I couldn't achieve to run Pipeline via passing parameter. apiVersion: tekton.dev/v1beta1 kind: PipelineRun metadata: generateName: build-deploy- labels: tekton.dev/pipeline:…
jdev
  • 33
  • 3
2
votes
1 answer

Can Gitlab webhooks be used to trigger Tekton Pipelines?

I have a working Tekton Pipeline that is successfully triggered by a GitHub webhook, but it doesn't work with Gitlab webhook. I can see that the Gitlab webhook is triggered and that it gets to the EventListener container in OpenShift, but the…
2
votes
1 answer

Tekton pipelines - secret displayed on dashboard

Just wanted to know if there is a way I can stop showing the secret I created on tekton dashboard. For example - In the tekton task running this following command - The $APIKEY is being pulled from a secret resource created. And in the dashboard, I…
Pranav Bhatia
  • 440
  • 2
  • 6
  • 10
2
votes
2 answers

CI/CD Automation in Tekton

Is it possible to enable CI/CD automation using Tekton Pipeline ? I have my project in GitHub repo. and whenever I make a change, I want to perform the build and deployment in Kubernetes automatically? I came across Prow, Trigger etc. If anyone…
testbg testbg
  • 193
  • 2
  • 11
1
vote
1 answer

Is possible to invoke webhook in certain files (Include/exclude) on Bitbucket?

I have two webhook (A, B) on the same repository that will invoke two external pipelines. What I expect is if a specific file [sampleB.txt] changes, only webhook B will be invoked. The issue is: the Bitbucket webhook message payload does not send…
user3454
  • 31
  • 1
  • 4
1
vote
1 answer

Pipeline getting stuck in a loop cloning a Git repo?

I'm just starting to learn Tekton. I have a Tekton pipeline with the following, taken from this article: apiVersion: tekton.dev/v1beta1 kind: Pipeline metadata: name: clone-read spec: description: | This pipeline clones a git repo, then…
jerdub1993
  • 355
  • 1
  • 8
1
vote
1 answer

Retrieve status of triggered pipeline using an API in Tekton

When we perform Tekton trigger API using an eventlistener, I am getting following response while in the background, pipeline runs for certain period of time. Is there any API to fetch the status of this pipelineRun using the given eventID or…
Mahesh
  • 1,117
  • 2
  • 23
  • 42
1
2 3 4 5 6 7