Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imod/jenkins-git-askpass-pipeline-lib

a small pipeline extension to ease the usage of GIT_ASKPASS in jenkins pipeline
https://github.com/imod/jenkins-git-askpass-pipeline-lib

git jenkins jenkins-pipeline jenkinsfile

Last synced: 26 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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('', '')`

```groovy
@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()
}
}
}
```