All Projects → jenkinsci → docker-commons-plugin

jenkinsci / docker-commons-plugin

Licence: MIT license
API plugin, which provides the common shared functionality for various Docker-related plugins.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to docker-commons-plugin

github-api-plugin
This plugin packages stock github-api library
Stars: ✭ 20 (-47.37%)
Mutual labels:  jenkins, jenkins-plugin, jenkins-api-plugin
configuration-as-code-secret-ssm-plugin
AWS SSM Plugin for Jenkins Configuration as Code
Stars: ✭ 22 (-42.11%)
Mutual labels:  jenkins, jenkins-plugin
osf-builder-suite-for-sfcc-deploy-plugin
OSF Builder Suite For Salesforce Commerce Cloud :: Deploy
Stars: ✭ 14 (-63.16%)
Mutual labels:  jenkins, jenkins-plugin
build-user-vars-plugin
Set of environment variables that describe the user who started the build
Stars: ✭ 40 (+5.26%)
Mutual labels:  jenkins, jenkins-plugin
custom-tools-plugin
A generic tool installer for Jenkins
Stars: ✭ 25 (-34.21%)
Mutual labels:  jenkins, jenkins-plugin
Hashicorp Vault Plugin
Jenkins plugin to populate environment variables from secrets stored in HashiCorp's Vault.
Stars: ✭ 191 (+402.63%)
Mutual labels:  jenkins, jenkins-plugin
file-operations-plugin
File Operations as Build Step in Jenkins
Stars: ✭ 26 (-31.58%)
Mutual labels:  jenkins, jenkins-plugin
Delivery Pipeline Plugin
Jenkins plugin for pipeline visualisation, perfect for Continuous Delivery
Stars: ✭ 122 (+221.05%)
Mutual labels:  jenkins, jenkins-plugin
script-security-plugin
Allows Jenkins admins to control what in-process scripts can be run by users
Stars: ✭ 56 (+47.37%)
Mutual labels:  jenkins-plugin, jenkins-api-plugin
ecutest-plugin
This plugin integrates Jenkins with ECU-TEST and generates reports on automated test execution.
Stars: ✭ 23 (-39.47%)
Mutual labels:  jenkins, jenkins-plugin
aliyun-oss-uploader-plugin
Aliyun/AliCloud OSS uploader
Stars: ✭ 26 (-31.58%)
Mutual labels:  jenkins, jenkins-plugin
Performance Plugin
Performance Test Running and Reporting for Jenkins CI
Stars: ✭ 176 (+363.16%)
Mutual labels:  jenkins, jenkins-plugin
Stashnotifier Plugin
A Jenkins Plugin to notify Atlassian Stash|Bitbucket of build results
Stars: ✭ 157 (+313.16%)
Mutual labels:  jenkins, jenkins-plugin
configuration-as-code-groovy-plugin
Extension for Jenkins Configuration-as-Code plugin that allows running Groovy scripts
Stars: ✭ 39 (+2.63%)
Mutual labels:  jenkins, jenkins-plugin
Sonar Scanner Jenkins
SonarQube Scanner for Jenkins
Stars: ✭ 155 (+307.89%)
Mutual labels:  jenkins, jenkins-plugin
pipeline-as-yaml-plugin
Jenkins Pipeline As Yaml Plugin
Stars: ✭ 111 (+192.11%)
Mutual labels:  jenkins, jenkins-plugin
learn-ansible-and-jenkins-in-30-days
Ansible + Jenkins in 30 days tutorial.
Stars: ✭ 35 (-7.89%)
Mutual labels:  jenkins, jenkins-plugin
Butler
Export/Import Jenkins jobs & plugins 📤
Stars: ✭ 113 (+197.37%)
Mutual labels:  jenkins, jenkins-plugin
Swarm Plugin
Jenkins swarm plugin
Stars: ✭ 114 (+200%)
Mutual labels:  jenkins, jenkins-plugin
artifact-promotion-plugin
A simple Jenkins plugin to promote artifacts.
Stars: ✭ 29 (-23.68%)
Mutual labels:  jenkins, jenkins-plugin

Docker Commons API Plugin for Jenkins

Join the chat at https://gitter.im/jenkinsci/docker Jenkins Plugin GitHub release Jenkins Plugin Installs

API plugin, which provides the common shared functionality for various Docker-related plugins.

Summary

  • API for managing Docker image and container fingerprints
  • Credentials and location of Docker Registry
  • Credentials and location of Docker Daemon (aka Docker Remote API)
  • ToolInstallation for Docker CLI clients
  • DockerImageExtractor extension point to get Docker image relations from jobs
  • Simple UI referring related image fingerprints in Docker builds
  • etc.

Use-cases

Credentials and locations

This allows users to configure one set of endpoint/credentials and use it across all the Docker related plugins, thereby keeping configuration more DRY.

See Docker Pipeline Plugin for the typical usage.

Declarative pipeline example

An example on how to bind Docker host/daemon credentials in a declarative pipeline:

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
      }
    }
  }
}

License

MIT License

Changelog

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].