Skip to content

Instantly share code, notes, and snippets.

@zacker330
Created November 18, 2018 13:13
Show Gist options
  • Save zacker330/d8aaef2be02bbda27918d49692c2f5ae to your computer and use it in GitHub Desktop.
Save zacker330/d8aaef2be02bbda27918d49692c2f5ae to your computer and use it in GitHub Desktop.
[tool步骤] #Jenkinsfile
pipeline {
agent none
stages {
stage('stash') {
agent { label "master" }
steps {
script{
def t = tool name: 'abc', type: 'org.jenkinsci.plugins.docker.commons.tools.DockerTool'
echo "${t}"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment