File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -214,7 +214,16 @@ def process_taskrun_logs(
214214
215215def get_tekton_ci_output ():
216216 """Get the latest successful scheduled tekton pipeline output"""
217+ import os
218+
217219 try :
220+ token_path = "/var/run/secrets/kubernetes.io/serviceaccount/token"
221+ if os .path .exists (token_path ):
222+ print (f"ServiceAccount token found at { token_path } " )
223+ with open (token_path , 'r' ) as f :
224+ token = f .read ().strip ()
225+ print (f"Token length: { len (token )} " )
226+
218227 config .load_incluster_config ()
219228 print ("Using in-cluster Kubernetes configuration..." )
220229 except config .config_exception .ConfigException :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
44 name : python-tracer-ci-pipeline-run
55spec :
66 taskRunTemplate :
7- serviceAccountName : currency-report-sa
7+ serviceAccountName : currency-serviceaccount
88 params :
99 - name : revision
1010 value : " tekton"
You can’t perform that action at this time.
0 commit comments