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/

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

ArgoCD: run a specific pipeline after a specific succesful ArgoCD deploy

We use ArgoCD Applications to deploy a set of Kubernetes resources. How can I start a specific pipeline after a specific succesful Application run? First I thought that starting such a pipeline could ...
tm1701's user avatar
  • 7,291
0 votes
0 answers
16 views

Tekton pipeline not showing diff after upgrade

We recently upgraded our Kubernetes cluster and due to that, we had to upgrade Tekton and Prow. After the upgrade, we had to make changes to the Prow job's pre and postsubmit config and we had to ...
Omkar's user avatar
  • 71
0 votes
1 answer
33 views

Tekton task 'sonarqube-scanner' fails on jdk error

The pipeline with git > maven > dockerbuild > etc ran well. After inserting the 'sonarqube-scanner' task between maven and dockerbuild, I got this error: Error: dl failure on line 631 Error: ...
tm1701's user avatar
  • 7,291
0 votes
1 answer
36 views

Tekton task - update Git config repo file (for ArgoCD)

How can I make a Tekton task that updates a Git config (public) repo file? The resulting git update will trigger e.g. ArgoCD for syncing the runtime environment. Of course I will add a proper security ...
tm1701's user avatar
  • 7,291
0 votes
2 answers
71 views

Exposing an EventListener outside of the cluster using a LoadBalancer Service type tekton gcp k8

Exposing an EventListener outside of the cluster, we can expose this service using the below options Using a LoadBalancer Service type Using a Kubernetes Ingress object Using the NGINX Ingress ...
San Jaisy's user avatar
  • 15.8k
0 votes
1 answer
50 views

User "system:serviceaccount:fetebird-common:gcp-service-account" cannot list resource "eventlisteners" in API group "triggers.tekton.dev" i

I have the below event listener, which holds the service account as gcp-service-account apiVersion: triggers.tekton.dev/v1beta1 kind: EventListener metadata: name: bitbucket-listener namespace: ...
San Jaisy's user avatar
  • 15.8k
0 votes
0 answers
25 views

How to store non-git credentials in Openshift for a Tekton pipeline?

I have a Tekton pipeline that will be posting to a rest API. I need to pass credentials to this, but as far as I can tell from this documentation, the only options for a pipeline are Git and Docker ...
jeremywat's user avatar
  • 444
0 votes
1 answer
35 views

How to get the brach name from a bitbucket PR trigger in Tekton?

I'm building a Tekton pipeline where I need to get all the modified files in a PR. This pipeline is initiated by a Bitbucket Pull Request web hook. The problem is the web hook payload includes the ...
jeremywat's user avatar
  • 444
1 vote
1 answer
49 views

How to refer Pipeline Run from resourcetemplates of TriggerTemplate

I have the below pipeline run apiVersion: tekton.dev/v1beta1 kind: PipelineRun metadata: name: ft-common-run namespace: fetebird-common spec: pipelineRef: name: ft-common podTemplate: ...
San Jaisy's user avatar
  • 15.8k
0 votes
1 answer
104 views

Received status code 401 from server: Unauthorized Publishing maven artifact to gcp artifact registry

I have copied the tekton-hub gradle task and modify the environment variable and volume-mount for GOOGLE_CREDENTIAL as below apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: gradle labels:...
San Jaisy's user avatar
  • 15.8k
0 votes
1 answer
115 views

"Error running git [init /workspace/output/]: exit status 1\n/workspace/output/.git: Permission denied\n"

I have the below tekton pipeline, and trying to run on Google Cloud apiVersion: tekton.dev/v1beta1 kind: PipelineRun metadata: name: ft-common-run namespace: fetebird-tekton spec: pipelineRef: ...
San Jaisy's user avatar
  • 15.8k
-1 votes
1 answer
103 views

How to pass the a VolumeClaimTemplate through tkn CLI and use them when starting a Pipeline so it applies to a PipelineRun

Is there a way to pass the claim as VolumeClaimTemplate and then provide its values to the pipeline so those are used when the PipelineRun is created at the execution of the pipeline instead of a PVC? ...
3learner's user avatar
0 votes
0 answers
52 views

Using taskRunSpecs for service account to clone, build, test and publish to gcp artifact library to maven failed

In the pipeline run, I have use taskRunSpecs to set the service account, the git clone is working fine, however with the GCP publish with the maven library failed with error message as Failed to ...
San Jaisy's user avatar
  • 15.8k
0 votes
0 answers
135 views

How to make tekton task to fail if curl command is failed inside task

I am working on a Tekton task that makes a cURL command request, extracts a response to a JSON file, and then extracts attributes from that JSON. I have noticed a behavior with my task that even if my ...
Karthik Peddineni's user avatar
0 votes
1 answer
261 views

"URL(\"xxxxxxx.git\") appears to need SSH authentication but no SSH credentials have been provided" Tekton pipeline

Using the tekton hub catalog git-clone task to clone the private repository for bitbucket. Keep getting an error as no SSH credentials have been provided I have created a new namespace for the ...
San Jaisy's user avatar
  • 15.8k
0 votes
1 answer
39 views

CronJob: unknown field "jobTemplate"

apiVersion: tekton.dev/v1beta1 kind: CronJob metadata: name: nightly-test namespace: team-dev spec: schedule: "0 1 * * *" jobTemplate: spec: backoffLimit: 6 ...
Cees Timmerman's user avatar
1 vote
1 answer
1k views

pods "xxxx" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "prepare", "place-scripts",

Install the git clone task from tekton hub kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.9/git-clone.yaml Git Secret.yaml apiVersion: v1 kind: Secret ...
San Jaisy's user avatar
  • 15.8k
0 votes
0 answers
35 views

Tekton git-cli v0.4 escaping problems with eval and sed

We are currently experiencing failures of a (previously working) tekton pipeline, while updating a task (git-cli). Our goal: Clone as repo Update a single line in a single file Commit and push It ...
René Jahn's user avatar
  • 1,175
0 votes
1 answer
98 views

Tekton: debugging why a when-clause is evaluated as false

I created a very simple task that checks if the current branch on a git repo is a release branch apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: check-git-remote-release-branches spec: ...
Otrebor's user avatar
  • 436
0 votes
0 answers
93 views

Exception with google bigquery select query to get count of rows in tekton task

I am working on a tekton task to get the count of rows from bigquery table and assign it to a variable for further validation, I have written below query to get the results in tekton task but it is ...
Karthik Peddineni's user avatar
0 votes
0 answers
60 views

How to create a Tekton pipeline for Azure Landing Zone using GitHub source code?

I want to create Tekton pipeline for Azure Landing Zone, I have my source code in the GitHub repo. Here is my task.yaml apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: tektonpipeline spec: ...
Mohd Zakir's user avatar
1 vote
1 answer
154 views

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 ...
user3454's user avatar
0 votes
0 answers
36 views

Exception while making BigQuery call from java through tekton pipeline

I am working on tekton pipeline that calls my java code which will make calls to the bigquery database and get the response into excel formatted file. By referencing google docs I have created tekton ...
Karthik Peddineni's user avatar
0 votes
0 answers
235 views

Tekton Pruning - Separate pipelineruns vs taskruns

I've installed Tekton Operator and Tekton Config as described here: https://tekton.dev/docs/operator/tektonconfig/ In the tektonconfig, it has a block like this: pruner: resources: - ...
Gary Turner's user avatar
0 votes
0 answers
67 views

EWS API to send email using shell script

I am working on a tekton task to share test results as an attachment to the management team, when I went through tekton dev hub I could find sendMail task but I don't see an option to attach file to ...
Karthik Peddineni's user avatar
-1 votes
1 answer
157 views

Tekton dashboard

Got the following error, while trying to view tekton dashboard using the command kubectl port-forward -n tekton-pipelines service/tekton-dashboard 9097:9097 Error from server (NotFound): services &...
Vignesh Kathirkamar's user avatar
1 vote
1 answer
258 views

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: ...
jerdub1993's user avatar
0 votes
1 answer
326 views

How to use single eventlistener for multiple tekton pipelines?

I'd like to have single eventlistener that would trigger different pipelines based on the git repo name.
Gas's user avatar
  • 17.7k
0 votes
1 answer
414 views

Tekton and Terraform order of operation

Trying to use Tekton CI/CD along with Terraform for IaC (Infrastructure-as-Code). Did not find tutorial or resources online that explains how these two operate together. So I would appreciate ...
Asif Rehan's user avatar
0 votes
1 answer
429 views

Tekton git-clone task is not found even though I see it in tkn task ls

I have installed tkn cli and installed 0.8 version of git-clone using this command: kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.8/git-clone.yaml However, ...
user3916622's user avatar
0 votes
0 answers
56 views

How to generate or get buildId for taskrun in tekton?

How to get build number for each Taskrun of Tekton. Whenever we run a task run we can see various details in pod section but there is no specific way to get buildId. So I want to know if there is any ...
hari mohan jha's user avatar
0 votes
1 answer
134 views

Tekton Dashboard OIDC

Is there a supported way to enable OIDC with Tekton dashboard? I found this link: https://medium.com/octo-technology-morocco/secure-authentication-to-tekton-dashboard-using-oidc-36de9b3f8a7d which ...
Gary Turner's user avatar
0 votes
0 answers
143 views

Failed to create task run pod ... : translating TaskSpec to Pod: Get "https://index.docker.io/v2/": dial tcp 34.205.13.154:443: i/o timeout

I am running tekton-pipeline v.0.45.0 in a Kubernetes cluster v1.26.2. When I run this task : apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: hello spec: steps: - name: echo ...
L.B's user avatar
  • 1
0 votes
1 answer
486 views

In tekton, how to set task resources in a pipeline definition?

I have a pipeline that references a task: --- apiVersion: tekton.dev/v1beta1 kind: Pipeline metadata: name: foo spec: tasks: - name: my-bar-task taskRef: name: bar-task ...
mab's user avatar
  • 770
0 votes
0 answers
523 views

helm install tekton cdf/tekton-pipeline fails with INSTALLATION FAILED no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"

I am trying to install tekton helm chart into my local K8s cluster created by Kind on Windows 10. I run the following command helm install tekton cdf/tekton-pipeline and it fails with Error: ...
Alexey Auslender's user avatar
0 votes
1 answer
421 views

How do I use a custom container image in a Tekton step?

I'm new to Tekton and Tekton Pipelines. The examples I found use standard container images in the Tekton task steps. For example, the following step uses a standard ubuntu container to run a shell ...
Geoff Alexander's user avatar
0 votes
1 answer
137 views

Is it possible to set Tekton PipelineRun history in OpenShift?

I am currently seeing only the last 5 pipeline runs in openshift. As I am not an administrator of openshift at my company I dont have insight if this was configured or not and could not find an answer ...
René Jahn's user avatar
  • 1,175
0 votes
0 answers
22 views

Installing tekton encountered forbidden message

I am trying to install Tekton. But upon trying to install the dashboard I have encountered an error "forbidden". I would like to install task, pipeline, and triggers
anonymous's user avatar
1 vote
1 answer
323 views

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 ...
Mahesh's user avatar
  • 1,157
0 votes
2 answers
133 views

Is there any limit on Active eventListeners in a namespace on OKD

I have twenty different repositories for the twenty separate services to be deployed on an OKD cluster. I want to create separate eventListener for each repository/service. The first eventListener and ...
Ray's user avatar
  • 39
0 votes
2 answers
961 views

Override Tekton global PipelineRun timeout

I have a problem where i need to trigger multiple Pipelinerun's at same time where the runs will take longer the 1 hour. The global timeout for the PipelineRun is 1 hours by default so it fails. The ...
linkebon's user avatar
  • 403
0 votes
1 answer
497 views

Tekton build Docker image with Kaniko - please provide a valid path to a Dockerfile within the build context with --dockerfile

I am new to Tekton (https://tekton.dev/) and I am trying to Clone the repository Build a docker image with the Dockerfile I have a Tekton pipeline and when I try to execute it, I get the following ...
Jananath Banuka's user avatar
0 votes
2 answers
671 views

Bitbucket Cloud interceptor for Tekton EventListener

I'm creating an eventlisterner for my repo on Bitbucket Cloud and saw on the curent example on the Tekton documentation that the Bitbucket interceptor only support Bitbucket Server. I've created the ...
Alioune Badara Diakhaté's user avatar
1 vote
2 answers
867 views

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 ...
user avatar
1 vote
1 answer
2k views

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 ...
René Jahn's user avatar
  • 1,175
1 vote
2 answers
497 views

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-...
San Jaisy's user avatar
  • 15.8k
0 votes
2 answers
1k views

Manage multiple service account for each task in pipeline tekton CI/CD

I have setup the pipeline that does the below work Clone the repo -- has its own secret and service account Build the application -- There are some java libraries that are published in google cloud ...
San Jaisy's user avatar
  • 15.8k
0 votes
1 answer
605 views

Gradle build failed in Tekton CI/CD

I have below pipeline task for Gradle build, which clones the project from bitbucket repo and try to build the application. tasks: - name: clone-repository taskRef: name: git-clone ...
San Jaisy's user avatar
  • 15.8k
1 vote
1 answer
1k views

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-...
San Jaisy's user avatar
  • 15.8k
1 vote
1 answer
601 views

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 ...
Manikanta Reddy Pasala's user avatar