Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created February 20, 2017 14:04
Show Gist options
  • Save ccapndave/e6244fad46edcb573bb9915762271dc4 to your computer and use it in GitHub Desktop.
Save ccapndave/e6244fad46edcb573bb9915762271dc4 to your computer and use it in GitHub Desktop.
#!groovy
node {
def nodeHome = tool name: 'NodeJS 6.9.5', type: 'nodejs'
def yarnHome = tool name: 'yarn', type: 'com.cloudbees.jenkins.plugins.customtools.CustomTool'
env.PATH = "${env.path}:${nodeHome}/bin:${yarnHome}"
stage('Checkout') {
checkout scm
}
stage('Install dependencies') {
sh 'yarn install'
}
}
@aipages
Copy link

aipages commented Nov 24, 2017

可以用更好的 flowci,支持docker,更简单易用。 https://github.com/FlowCI/docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment