makes jenkins build nuget packages
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1797f383d1
commit
ebdd0aecc1
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
@ -4,8 +4,9 @@ pipeline {
|
||||
}
|
||||
|
||||
environment {
|
||||
PWDNVERSION = "0.1.0"
|
||||
// home is required to make dotnet work as if undived / is used which is not accessible
|
||||
HOME = "${env.WORKSPACE}"
|
||||
//DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
|
||||
}
|
||||
|
||||
stages {
|
||||
@ -15,17 +16,23 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
// stage('build') {
|
||||
// steps {
|
||||
// sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER} ${env.WORKSPACE}/src/PiwigoDotnet.sln"
|
||||
// }
|
||||
// }
|
||||
stage('test') {
|
||||
steps {
|
||||
sh "dotnet test ${env.WORKSPACE}/src/PiwigoDotnet.sln"
|
||||
}
|
||||
}
|
||||
|
||||
// stage('Testing') {
|
||||
// steps {
|
||||
// sh "cd ${env.WORKSPACE}/src"
|
||||
// sh "dotnet test"
|
||||
// }
|
||||
// }
|
||||
stage('packing') {
|
||||
steps {
|
||||
sh "dotnet pack ${env.WORKSPACE}/src/PiwigoDotnet.sln -o ${env.WORKSPACE}/publish -p:Version=${env.PWDNVERSION}.${env.BUILD_NUMBER}"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "publish", onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
1
src/.idea/.idea.PiwigoDotnet/.idea/.name
generated
Normal file
1
src/.idea/.idea.PiwigoDotnet/.idea/.name
generated
Normal file
@ -0,0 +1 @@
|
||||
PiwigoDotnet
|
@ -4,6 +4,15 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<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>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -4,6 +4,15 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<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>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user