Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FeynmanFan committed Apr 2, 2020
1 parent d209ee1 commit a24ba38
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dotnetcore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def dockerImage;

node('docker'){
stage('SCM'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/FeynmanFan/JenkinsDocker']]]);
}
stage('build'){
dockerImage = docker.build('chrisbbehrens/agent-dnc:v$BUILD_NUMBER', './dotnetcore');
}
stage('push'){
docker.withRegistry('', 'dockerhubcreds'){
dockerImage.push();
}
}
}

0 comments on commit a24ba38

Please sign in to comment.