From c203506bedd30c30986e89faa84b502e22107b67 Mon Sep 17 00:00:00 2001 From: Flare Microsystems Date: Sun, 17 Nov 2024 08:12:17 -0800 Subject: [PATCH] Fix revolting indentation in Jenkinsfile --- Jenkinsfile | 56 ++++++++++++++++++++++++++--------------------------- README.md | 3 ++- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75ec45e..61c34c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } + } + } } diff --git a/README.md b/README.md index aa2ef85..4dfd2a8 100644 --- a/README.md +++ b/README.md @@ -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