Docker build using https://bitnami.com/stack/jenkins/helm

Keywords: Jenkins - Other - How to - Other
Description:
Hi all, i’ve installed jenkins using helm https://bitnami.com/stack/jenkins/helm but i not found a way to use docker build. I’ve found docker installation program inside jenkins configuration and using org.jenkinsci.plugins.docker.commons.tools.DockerTool.
ex 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' 'master'
  }
  environment {
    DOCKER_CERT_PATH = credentials('canister_docker')
  }
  stages {
    stage('docker_version'){
        steps{
            sh "docker -version"
        }
    }
    stage('build') {
      steps {
        sh "./mvnw clean spring-boot:build-image " // DOCKER_CERT_PATH is automatically picked up by the Docker client
      }
    }
  }
}

The problem is that mvn spring-boot:build-image command cannot connect to docker socket so the build command not work.

I’ve tried a tons of plugins and online solutions without success. Can anyone help me?
Thanks

Hello @paulux84,

We provide technical support for our charts in our Github repositories. Our team is actively monitoring them and will be glad to help you there, usually within a business day, and the whole community will benefit from your contribution. Could you please post your question by creating a new issue in the testlink repo?

https://github.com/bitnami/charts/issues

Thank you for your understanding!

Sure, thanks for the reply.
I’ve opened a new issue here
Have a nice day :slight_smile: