Created
February 20, 2017 14:04
-
-
Save ccapndave/e6244fad46edcb573bb9915762271dc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以用更好的 flowci,支持docker,更简单易用。 https://github.com/FlowCI/docker