Skip to content

a small pipeline extension to ease the usage of GIT_ASKPASS in jenkins pipeline

License

Notifications You must be signed in to change notification settings

imod/jenkins-git-askpass-pipeline-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitAskPass - GIT_ASKPASS

small jenkins pipeline example extension to ease the usage of GIT_ASKPASS on a remote repositories via HTTP/HTTPS

how to use

gitAskPass('<GIT_CREDENTIALS_ID_TO_USE>', '<the full git command needing authentication>')

  @Library('my-shared-library')

  pipeline {
      agent any
      stages {
          stage ('build') {
          steps {
              script {
                  gitAskPass('MY_GIT_CREDENTIALS', 'git clone https://github.com/imod/jenkins-git-askpass-pipeline-lib.git')
              }
          }
          }
      }
      post { 
          always { 
              cleanWs()
          }
      }   
  }

About

a small pipeline extension to ease the usage of GIT_ASKPASS in jenkins pipeline

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published