diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index dd443e2..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,23 +0,0 @@ -pipeline { - agent any - stages { - stage('Build') { - steps { - dotnetBuild(configuration: 'Release') - } - } - - stage('Test') { - steps { - dotnetTest(configuration: 'Release') - } - } - - stage('Push Package') { - steps { - dotnetNuGetPush(apiKeyId: '3yAJPMxcaEhb_HP62dxK', source: 'http://nuget.l--n.de/nuget/l--n/v3/index.json') - } - } - - } -} \ No newline at end of file diff --git a/build.ln b/build.ln index acf1976..afa2528 100644 --- a/build.ln +++ b/build.ln @@ -1,47 +1,17 @@ - { - "env": { - "NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/", - "CONFIGURATION": "Release" - }, - "stages": [ - { - "name": "setup", - "env": { - "SOME_ENV_VAR": "Some text", - }, - "commands": [ - "SH echo Setting up build environment", - "SH set", - "SH rm -Rf .build" - ] - }, - { - "name": "prepare", - "commands": [ - "SH dotnet restore", - "SH dotnet clean" - ] - }, - { - "name": "build", - "commands": [ - "SH dotnet build -c $CONFIGURATION" - ] - }, - { - "name": "pack_and_publish", - "commands": [ - "SH dotnet pack ln.parse -o .build -c $CONFIGURATION", - ] - }, - { - "name": "push", - "commands": [ - "SH for NUPKG in .build/*.nupkg; do dotnet nuget push $NUPKG -s $NUGET_SOURCE -k $NUGET_APIKEY; done", - ], - "secrets": { - "NUGET_APIKEY": "https://nexus.niclas-thobaben.de" - } - } - ] - } \ No newline at end of file +{ + "templates": [ + "dotnet" + ], + "env": { + "NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/", + "CONFIGURATION": "Release" + }, + "stages": [ + { + "name": "prepare", + "commands": [ + "dotnet prepare */*.csproj" + ] + } + ] +} \ No newline at end of file diff --git a/ln.parse/ln.parse.csproj b/ln.parse/ln.parse.csproj index db401ff..0a0db3a 100644 --- a/ln.parse/ln.parse.csproj +++ b/ln.parse/ln.parse.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 0.6.0 + 0.6.0-ci Harald Wolff-Thobaben l--n.de