Fix revolting indentation in Jenkinsfile
This commit is contained in:
56
Jenkinsfile
vendored
56
Jenkinsfile
vendored
@@ -1,39 +1,39 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
environment {
|
environment {
|
||||||
JAVA_HOME = '/tool/jdk1.6.0_45'
|
JAVA_HOME = '/tool/jdk1.6.0_45'
|
||||||
ANT_HOME = '/tool/ant1.7.1'
|
ANT_HOME = '/tool/ant1.7.1'
|
||||||
}
|
}
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Compile'){
|
stage('Compile'){
|
||||||
steps {
|
steps {
|
||||||
sh "$ANT_HOME/bin/ant compile compile_tests"
|
sh "$ANT_HOME/bin/ant compile compile_tests"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test'){
|
stage('Test'){
|
||||||
steps {
|
steps {
|
||||||
sh "$ANT_HOME/bin/ant test"
|
sh "$ANT_HOME/bin/ant test"
|
||||||
junit 'reports/*.xml'
|
junit 'reports/*.xml'
|
||||||
script{
|
script{
|
||||||
if (currentBuild.result == 'UNSTABLE')
|
if (currentBuild.result == 'UNSTABLE')
|
||||||
{
|
{
|
||||||
currentBuild.result = 'FAILURE'
|
currentBuild.result = 'FAILURE'
|
||||||
error('Tests failed, failing the build!')
|
error('Tests failed, failing the build!')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Package'){
|
stage('Package'){
|
||||||
steps {
|
steps {
|
||||||
sh "$ANT_HOME/bin/ant create_run_jar"
|
sh "$ANT_HOME/bin/ant create_run_jar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive Artifacts')
|
stage('Archive Artifacts')
|
||||||
{
|
{
|
||||||
when {triggeredBy 'UserIdCause'}
|
when {triggeredBy 'UserIdCause'}
|
||||||
steps{
|
steps{
|
||||||
archiveArtifacts artifacts: 'CrossJeeves.jar'
|
archiveArtifacts artifacts: 'CrossJeeves.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
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!
|
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.
|
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
|
# TODO
|
||||||
See Issues for a more comprehensive "Todo" list
|
See Issues for a more comprehensive "Todo" list
|
||||||
- Better Logging and Log Levels
|
- Better Logging and Log Levels
|
||||||
|
|||||||
Reference in New Issue
Block a user