diff --git a/Jenkinsfile b/Jenkinsfile index 4472d79..74a27d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,10 @@ pipeline { agent any stages { + stage('env'){ + cleanWs() + checkout scm + } stage('nuget pack'){ steps{ dotnetPack(outputDirectory: "./", project: "nugettest/") @@ -24,7 +28,7 @@ pipeline { } stage('publish package'){ steps{ - dotnetNuGetPush(root: "./*.nupkg", source:"greyngitea") + dotnetNuGetPush(root: "./*.nupkg", source:"greyngitea", skipDuplicate:true) } } }