on-internet
← Community

Using withEnv in a declarative pipeline

Stack Overflow ·

I'm trying to run docker command in my declarative pipeline, to install docker env on my slave machine i'm trying to use docker commons plugin "https://plugins.jenkins.io/docker-commons/", but no success. Further research i have got below link mentioning how to use this plugin. https://automatingguy.com/2017/11/06/jenkins-pipelines-simple-delivery-flow/ I have configured docker in manage jenkins -> global tool configuration, but dont find how to use below section in my declarative pipeline of jenkins, i think below structure/syntax will work for scripted jenkins pipeline def dockerTool = tool

Comments

Sign in or sign up to comment and upvote.

No comments yet.