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: 3 months ago
JSON representation
a small pipeline extension to ease the usage of GIT_ASKPASS in jenkins pipeline
- Host: GitHub
- URL: https://github.com/imod/jenkins-git-askpass-pipeline-lib
- Owner: imod
- License: mit
- Created: 2018-05-02T08:25:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T03:50:53.000Z (over 4 years ago)
- Last Synced: 2025-03-24T19:52:33.362Z (4 months ago)
- Topics: git, jenkins, jenkins-pipeline, jenkinsfile
- Language: Groovy
- Size: 2.93 KB
- Stars: 10
- Watchers: 0
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
}
}
}
```