node {
try {
// set working directory
dir(working directory here){
stage(main){
// get docker image
// defined a docker command here that runs the container, clones git repository inside it and uses makefile to build the project
// ran the docker command in a shell script
}
}
}
catch {
// catch error and send notification
}
}