Removed jenkins trigger, updated build.ln
ln.build - build0.waldrennach.l--n.de build job pending
Details
ln.build - build0.waldrennach.l--n.de build job pending
Details
parent
dceb2082b0
commit
7eb8c51ba0
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
44
build.ln
44
build.ln
|
@ -1,47 +1,17 @@
|
|||
{
|
||||
{
|
||||
"templates": [
|
||||
"dotnet"
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"dotnet prepare */*.csproj"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>0.6.0</Version>
|
||||
<Version>0.6.0-ci</Version>
|
||||
<Authors>Harald Wolff-Thobaben</Authors>
|
||||
<Company>l--n.de</Company>
|
||||
</PropertyGroup>
|
||||
|
|
Loading…
Reference in New Issue