Dockerfile:
pipeline {
agent any
stages {
stage ('Compile') {
steps {
withMaven(maven: 'maven_3_6_3') {
sh 'mvn clean compile'
}
}
}
stage ('unit test and Package') {
steps {
withMaven(maven: 'maven_3_6_3') {
sh 'mvn package'
}
}
}
stage ('Docker build') {
steps {
sh 'docker build -t dockerId/cakemanager .'
}
}
}
}
- docker build -t dockerId/cakemanager . /Users/Shared/Jenkins/Home/workspace/CDCI-Cake-Manager_master@tmp/durable-e630df16/script.sh:
line 1: docker: command not found