Hi I am trying to create jenkins pipeline to build my .net core application. I am facing issue in jenkins file. Below is my jenkins file.
pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'microsoft/dotnet:2.1-sdk'
args '-u root:root'
}
}
steps {
node {
checkout scm
}
}
}
}
}
Whenever I build, I get the below error.
Can someone help me to fix this issue? Any help would be appreciated. Thanks