Browse Source

Merge remote-tracking branch 'origin/avalonia' into avalonia

pull/55/head
Ionite 1 year ago
parent
commit
b4c67e7122
No known key found for this signature in database
  1. 42
      Jenkinsfile-linux

42
Jenkinsfile-linux

@ -0,0 +1,42 @@
node("Diligence") {
def repoName = "StabilityMatrix"
def author = "ionite34"
def version = ""
stage('Clean') {
deleteDir()
}
stage('Checkout') {
git branch: env.BRANCH_NAME, credentialsId: 'Ionite', url: "https://github.com/${author}/${repoName}.git"
}
// stage('Test') {
// sh "dotnet test StabilityMatrix.Tests"
// }
if (env.BRANCH_NAME == 'main') {
stage('Set Version') {
script {
if (env.TAG_NAME) {
version = env.TAG_NAME.replaceFirst(/^v/, '')
} else {
version = VersionNumber projectStartDate: '2023-06-21', versionNumberString: '${BUILDS_ALL_TIME}', worstResultForIncrement: 'SUCCESS'
}
}
}
stage('Publish') {
sh "pupnet --runtime linux-x64 --kind appimage --app-version ${version} --clean -y"
}
stage ('Archive Artifacts') {
archiveArtifacts artifacts: 'out/*.appimage', followSymlinks: false
}
} else {
stage('Publish') {
sh "pupnet --runtime linux-x64 --kind appimage --app-version ${version} --clean -y"
}
}
}
Loading…
Cancel
Save