Fix revolting indentation in Jenkinsfile

This commit is contained in:
Flare Microsystems
2024-11-17 08:12:17 -08:00
parent 766fafcf10
commit c203506bed
2 changed files with 30 additions and 29 deletions

56
Jenkinsfile vendored
View File

@@ -1,39 +1,39 @@
pipeline {
environment {
JAVA_HOME = '/tool/jdk1.6.0_45'
ANT_HOME = '/tool/ant1.7.1'
}
agent any
stages {
stage('Compile'){
steps {
JAVA_HOME = '/tool/jdk1.6.0_45'
ANT_HOME = '/tool/ant1.7.1'
}
agent any
stages {
stage('Compile'){
steps {
sh "$ANT_HOME/bin/ant compile compile_tests"
}
}
stage('Test'){
steps {
}
}
stage('Test'){
steps {
sh "$ANT_HOME/bin/ant test"
junit 'reports/*.xml'
script{
if (currentBuild.result == 'UNSTABLE')
{
currentBuild.result = 'FAILURE'
error('Tests failed, failing the build!')
}
currentBuild.result = 'FAILURE'
error('Tests failed, failing the build!')
}
}
}
}
stage('Package'){
steps {
}
}
stage('Package'){
steps {
sh "$ANT_HOME/bin/ant create_run_jar"
}
}
stage('Archive Artifacts')
{
when {triggeredBy 'UserIdCause'}
steps{
archiveArtifacts artifacts: 'CrossJeeves.jar'
}
}
}
}
}
stage('Archive Artifacts')
{
when {triggeredBy 'UserIdCause'}
steps{
archiveArtifacts artifacts: 'CrossJeeves.jar'
}
}
}
}