I\'m following a tutorial about Jenkins pipeline and I can get a \"hello world\" working under at node 6.10 docker container.
But, when I added a default EmberJS app
In my case the problem was that inside the container I was user jenkins instead of root. I got there by setting whoami inside the container and got error like cannot determine user 111 (which happens to be jenkins). So I did the following:
stage('Run build') {
webappImage.inside("-u root") {
sh "yarn run build"
}
}