Closed albert-olive closed 6 years ago
Looks like wherever yarn add global
puts the gk-lockfile binaries is not in the PATH
for the shell that execute your steps in the stage.
Yes, I ended up doing this:
def unitTest(){
node(node_name){
stage ("Unit test",params.rollBackBuild){
checkout scm
echo "Running unit test for brench: ${branch_type}"
sh 'yarn install'
sh 'yarn add greenkeeper-lockfile@1 --dev'
sh './node_modules/.bin/greenkeeper-lockfile-update'
sh 'yarn lint'
sh 'CI=true yarn test'
sh 'CI=true yarn test:upload'
sh './node_modules/.bin/greenkeeper-lockfile-upload'
}
}
}
thanks!
Hi,
I have a jenkins job and I'm trying to configure Greenkeeper. This is what I have so far:
And the console log:
Do you know why it's happening?
Thanks