diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..755a1ca --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent { + label '.net7.0' + } + environment { + dockerhub = credentials('7be238fc-d62e-46e7-9aa9-7f6b82623e2f') + gitea = credentials('83c86412-c52d-4906-9b9d-9d8d7f26da7f') + } + stages { + stage('Build classlib') { + steps { + sh '''cd classlib + dotnet build --no-incremental --force --configuration Release + dotnet publish -c Release''' + } + } + } + post { + success { + archiveArtifacts artifacts: 'classlib/bin/Release/netstandard2.1/publish/*.dll, *.psd1, *.psm1, LICENSE, **/*.ps1xml, **/*.ps1', followSymlinks: false, onlyIfSuccessful: true + } + } +} \ No newline at end of file