Removed jenkins trigger, updated build.ln
ln.build - build0.waldrennach.l--n.de build job pending Details

master
Harald Wolff 2020-12-09 14:59:44 +01:00
parent dceb2082b0
commit 7eb8c51ba0
3 changed files with 18 additions and 71 deletions

23
Jenkinsfile vendored
View File

@ -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')
}
}
}
}

View File

@ -1,47 +1,17 @@
{ {
"env": { "templates": [
"NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/", "dotnet"
"CONFIGURATION": "Release" ],
}, "env": {
"stages": [ "NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/",
{ "CONFIGURATION": "Release"
"name": "setup", },
"env": { "stages": [
"SOME_ENV_VAR": "Some text", {
}, "name": "prepare",
"commands": [ "commands": [
"SH echo Setting up build environment", "dotnet prepare */*.csproj"
"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"
}
}
]
}

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Version>0.6.0</Version> <Version>0.6.0-ci</Version>
<Authors>Harald Wolff-Thobaben</Authors> <Authors>Harald Wolff-Thobaben</Authors>
<Company>l--n.de</Company> <Company>l--n.de</Company>
</PropertyGroup> </PropertyGroup>