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/
Questions tagged [tekton-pipelines]
95 questions
1
vote
2 answers
Tekton: Get Pipeline name inside task
I know that there is something like context.pipelineRun.name but that's only available in the pipeline. How can I get the pipeline name inside a task to build a link to the Tekton-dashboard, WITHOUT a parameter?
user18275887
1
vote
1 answer
Use of kubernetes secret value in Tekton Pipeline params
I am currently implementing a CI Pipeline using Tekton. I was wondering if there is a way to use some kind of valueFromEnv for pipeline params.
For example to authenticate a Task for sonarqube analysis with my company's sonar host i need the login…

René Jahn
- 1,155
- 1
- 10
- 27
1
vote
2 answers
Create secret for Gcp service accont using Yaml in Kubernetes
I am trying to create a Kubernetes secret for the IAM service account of GCP from the download file which has the following structure
secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: gcp-secret
namespace: tekton-pipelines
type:…

San Jaisy
- 15,327
- 34
- 171
- 290
1
vote
1 answer
Persistance storage sharing between the task in Tekton pipeline
I have a below pipeline
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: git-clone-pipeline
spec:
params:
- name: repo-url
type: string
workspaces:
- name: shared-workspace
tasks:
- name: clone-repository
…

San Jaisy
- 15,327
- 34
- 171
- 290
1
vote
1 answer
How to attach a volume to docker running in tekton pipelines
I have a problem attaching a volume to the docker image running inside tekton pipelines. I have used the below task
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: distributor-base
namespace: cicd
labels:
…

Manikanta Reddy Pasala
- 69
- 10
1
vote
1 answer
Using --net=host in Tekton sidecars
I am creating a tekton project which will spawn docker images which in turn will run few kubectl commands. This I have accomplished by using sidecars in tekton docker:dind image and setting
securityContext:
privileged: true
…

zXi
- 112
- 7
1
vote
1 answer
What causes a Tekton step to fail?
Steps succeed or fail based on the output of the command or script they run, but I'm not clear on how exactly this works. Does any output to stderr cause the step to fail? If not, how exactly does Tekton determine if a step has failed or succeeded?

Hilda Hay
- 87
- 3
1
vote
1 answer
Tekton Pipelines: Enable alpha features using released pipelines yaml without the need to store (& maintain) feature-flags ConfigMap
We'd like to use Tekton experimental features such as the Pipelines In Pipelines feature. We already installed the feature as described in the README via kubectl apply but end up in an error like this:
Pipeline default/buildpacks-test-pipeline can't…

jonashackt
- 12,022
- 5
- 67
- 124
1
vote
1 answer
Cache Maven dependencies in Tekton Maven Task from Tekton Hub
We want to build a Spring Boot-based project using Maven. We found the Maven Task on the Tekton Hub and already have a running Pipeline. In a shortened version our pipeline.yml looks like this:
apiVersion: tekton.dev/v1beta1
kind:…

jonashackt
- 12,022
- 5
- 67
- 124
1
vote
1 answer
Tekton task fails with `more than one PersistentVolumeClaim is bound`
I'm trying to run a Tekton pipeline with a task that needs to access multiple PersistentVolumeClaim workspaces. When I run the pipeline, the task fails with the message "more than one PersistentVolumeClaim is bound". As far as I can tell, there's…

Hilda Hay
- 87
- 3
1
vote
1 answer
How can I make a Tekton Task's command execution wait until the previous Task's spun up pod is ready for requests
I have an OpenShift/Tekton pipeline which in Task A deploys an application to a test environment. In Task B, the application's test suite is run. If all tests pass, then the application is deployed to another environment in Task C.
The problem is…

Andreas Bradahl
- 25
- 6
1
vote
1 answer
Why Use Argo CD in Combination with Tekton
I am configuring a cloud-native OpenShift CI/CD process using Tekton. Tekton has the option to trigger via events and also has the option to deploy directly to a cluster. Given this functionality, I am confused of the ideal use case for Argo…

pirateofebay
- 930
- 1
- 10
- 25
1
vote
1 answer
How does Tekton control the step sequence in a task?
As I know, containers in a pod don't have a sequence for start or stop. But how does Tekton achieve this? I can search the result in the doc "The order in which the Steps appear in this list is the order in which they will execute." Anyone can tell…

yangyang
- 243
- 1
- 5
- 10
1
vote
1 answer
How can I run a task that requires multiple containers?
This is my first question so please presume ignorance and positive intent.
As part of our build pipeline I need to run what our dev team calls "unit tests." These unit tests are run via an ant target. Before running that ant target we must spin…

Brad Durrow
- 21
- 1
1
vote
1 answer
How can I verify that my buildah container image was actually created in my Tekton Task
I'm working on creating a Tekton pipeline on my Kind cluster. I have a Task where the first step builds a container image using buildah. And now I want to verify that the container image was actually created.
So in the next step, I try to "view" my…

Andreas Bradahl
- 25
- 6