makes jenkins build nuget packages
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit

This commit is contained in:
Philipp Häfelfinger 2022-10-25 22:59:56 +02:00
parent 1797f383d1
commit ebdd0aecc1
5 changed files with 39 additions and 12 deletions

31
Jenkinsfile vendored
View File

@ -4,8 +4,9 @@ pipeline {
} }
environment { environment {
PWDNVERSION = "0.1.0"
// home is required to make dotnet work as if undived / is used which is not accessible
HOME = "${env.WORKSPACE}" HOME = "${env.WORKSPACE}"
//DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
} }
stages { stages {
@ -15,17 +16,23 @@ pipeline {
} }
} }
// stage('build') { stage('test') {
// steps { steps {
// sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER} ${env.WORKSPACE}/src/PiwigoDotnet.sln" sh "dotnet test ${env.WORKSPACE}/src/PiwigoDotnet.sln"
// } }
// } }
// stage('Testing') { stage('packing') {
// steps { steps {
// sh "cd ${env.WORKSPACE}/src" sh "dotnet pack ${env.WORKSPACE}/src/PiwigoDotnet.sln -o ${env.WORKSPACE}/publish -p:Version=${env.PWDNVERSION}.${env.BUILD_NUMBER}"
// sh "dotnet test" }
// } }
// }
}
post {
always {
archiveArtifacts artifacts: "publish", onlyIfSuccessful: true
}
} }
} }

View File

@ -0,0 +1 @@
PiwigoDotnet

View File

@ -4,6 +4,15 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Title>Piwigo dotnet for autofac</Title>
<Authors>Philipp Häfelfinger</Authors>
<Description>Provides autofac registration extensions for piwigo dotnet</Description>
<Copyright>(c) by Philipp Häfelfinger</Copyright>
<PackageProjectUrl>https://git.haefelfinger.net/piwigo/piwigodotnet.git</PackageProjectUrl>
<PackageLicenseUrl>https://git.haefelfinger.net/piwigo/piwigodotnet/raw/branch/main/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://git.haefelfinger.net/piwigo/piwigodotnet.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>piwigo,autofac</PackageTags>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -5,6 +5,7 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -4,6 +4,15 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Title>Piwigo dotnet</Title>
<Authors>Philipp Häfelfinger</Authors>
<Description>A dotnet client library to access a piwigo gallery using their web service api</Description>
<Copyright>(c) by Philipp Häfelfinger</Copyright>
<PackageProjectUrl>https://git.haefelfinger.net/piwigo/piwigodotnet.git</PackageProjectUrl>
<PackageLicenseUrl>https://git.haefelfinger.net/piwigo/piwigodotnet/raw/branch/main/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://git.haefelfinger.net/piwigo/piwigodotnet.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>piwigo</PackageTags>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>