
API प्लगइन, जो विभिन्न Docker-संबंधित प्लगइन्स के लिए सामान्य साझा कार्यक्षमता प्रदान करता है।
ToolInstallationDockerImageExtractor एक्सटेंशन पॉइंटयह उपयोगकर्ताओं को endpoint/क्रेडेंशियल का एक सेट कॉन्फ़िगर करने और उसे सभी Docker संबंधित प्लगइन्स में उपयोग करने की अनुमति देता है, जिससे कॉन्फ़िगरेशन अधिक DRY रहता है।
सामान्य उपयोग के लिए Docker Pipeline Plugin देखें।
Declarative pipeline में Docker host/daemon क्रेडेंशियल बाँधने का एक उदाहरण:
pipeline {
agent any
tools {
// a bit ugly because there is no `@Symbol` annotation for the DockerTool
// see the discussion about this in PR 77 and PR 52:
// https://github.com/jenkinsci/docker-commons-plugin/pull/77#discussion_r280910822
// https://github.com/jenkinsci/docker-commons-plugin/pull/52
'org.jenkinsci.plugins.docker.commons.tools.DockerTool' '18.09'
}
environment {
DOCKER_CERT_PATH = credentials('id-for-a-docker-cred')
}
stages {
stage('foo') {
steps {
sh "docker version" // DOCKER_CERT_PATH is automatically picked up by the Docker client
}
}
}
}
1.15 और पुराने के लिए रिलीज़ नोट्स संग्रह देखें