added wp buildscript

This commit is contained in:
Ell 2023-11-30 21:57:34 +01:00
parent 4d5478bcf2
commit d0972506b5
2 changed files with 17 additions and 31 deletions

17
.woodpecker/main.yml Normal file
View file

@ -0,0 +1,17 @@
steps:
build:
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- dotnet build **/ExtremelySimpleLogger.csproj
pack:
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- find . -type f -name '*.nupkg' -delete
- dotnet pack **/ExtremelySimpleLogger.csproj --version-suffix ci.$CI_PIPELINE_NUMBER
push:
when:
- event: [push, manual]
branch: main
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET_KEY -n true

31
Jenkinsfile vendored
View file

@ -1,31 +0,0 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'dotnet build **/ExtremelySimpleLogger.csproj'
}
}
stage('Pack') {
steps {
sh 'find . -type f -name \\\'*.nupkg\\\' -delete'
sh 'dotnet pack **/ExtremelySimpleLogger.csproj --version-suffix ${BUILD_NUMBER}'
}
}
stage('Publish') {
when {
branch 'main'
}
steps {
sh '''dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true
'''
}
}
}
environment {
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
}
}