Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-3116

tkn pac resolve -f dir doesnt detect auth secret

XMLWordPrintable

      Description of problem:

      when running tkn pac resolve -f to a directory it shoul detect the git auth secret and ask user to provide one, we only do this currently when the user is specifying the template directly instead of the directory.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       

      tkn pac resolve -f .tekton/

       

      if you have a {{ git_auth_secret }} in there it should ask you to provide a secret

      Actual results:

      Expected results:

       

       
      % tkn pac generate
      ? Enter the Git event type for triggering the pipeline:  Pull Request
      ? Enter the target GIT branch for the Pull Request (default: main):  
      ✓ A basic template has been created in /Users/chmouel/GIT/go/src/github.com/chmouel/scratchmyback/.tekton/pull-request.yaml, feel free to customize it.
      ℹ You can test your pipeline by pushing generated template to your git repository
      % tkn pac resolve -f .
      ? We have detected a git_auth_secret in your PipelineRun. Would you like to provide a API token for the git_clone task? (Y/n) 
      

       

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              cboudjna@redhat.com Chmouel Boudjnah
              cboudjna@redhat.com Chmouel Boudjnah
              Savita . Savita .
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 minutes
                  2m
                  Remaining:
                  Remaining Estimate - 2 minutes
                  2m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified