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'
}
}
}
}

View File

@@ -3,10 +3,11 @@ For when Jenkin's Hands are Full
CrossJeeves is made to bypass the limitations of Jenkins requiring Java 17 for agents. This is a neiche application for neiche projects that require building on legacy devices with legacy compilers and no support for newer Java, so all code submitted to this repository ***MUST*** support Java 5 or lower.
# WARNING
## WARNING
CROSSJEEVES IS REMOTE CODE EXECUTION BY DESIGN!
Currently, there *is* no verification, encryption, or any sort of security. This is a BETA PROJECT and should only be used on closed networks, preferrably on a private build network as these are already legacy machines. The hosted CrossJeeves port should ***NEVER*** be forwarded.
# TODO
See Issues for a more comprehensive "Todo" list
- Better Logging and Log Levels