From a89fbd6a71b48bdc277dd96afcd73c2282c9c6a2 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 28 Feb 2020 22:30:42 +0100 Subject: [PATCH] added ci + nuget server --- Jenkinsfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0a7651a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,28 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + sh 'dotnet build **/Coroutine.csproj' + } + } + + stage('Pack') { + steps { + sh 'find . -type f -name \\\'*.nupkg\\\' -delete' + sh 'dotnet pack **/Coroutine.csproj --version-suffix ${BUILD_NUMBER}' + } + } + + stage('Publish') { + steps { + sh '''dotnet nuget push -s http://localhost:5000/v3/index.json $i -k $BAGET -n true +''' + } + } + + } + environment { + BAGET = 'credentials(\'3db850d0-e6b5-43d5-b607-d180f4eab676\')' + } +} \ No newline at end of file