You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
891 B
27 lines
891 B
1 year ago
|
node("Windows") {
|
||
|
def repoName = "StabilityMatrix"
|
||
|
def author = "ionite34"
|
||
|
def version = ""
|
||
|
|
||
|
stage('Clean') {
|
||
|
bat """set folder="${env.WORKSPACE}"
|
||
|
cd /d %folder%
|
||
|
for /F "delims=" %%i in (\'dir /b\') do (rmdir "%%i" /s/q || del "%%i" /s/q)"""
|
||
|
}
|
||
|
|
||
|
stage('Checkout') {
|
||
|
git branch: env.BRANCH_NAME, credentialsId: 'jenkins-shared-pipeline', url: "https://github.com/${author}/${repoName}.git"
|
||
|
}
|
||
|
|
||
|
stage('Build') {
|
||
|
bat "dotnet publish -c Release -o out --self-contained true"
|
||
|
}
|
||
|
|
||
|
stage('Set Version') {
|
||
|
version = VersionNumber projectStartDate: '', versionNumberString: '${BUILD_DATE_FORMATTED, "yy"}.${BUILD_WEEK}.${BUILDS_THIS_WEEK}', versionPrefix: '', worstResultForIncrement: 'SUCCESS'
|
||
|
}
|
||
|
|
||
|
stage ('Archive Artifacts') {
|
||
|
archiveArtifacts artifacts: 'out/**/*.*', followSymlinks: false
|
||
|
}
|
||
|
}
|