You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2021/11/07 15:00:08 UTC
svn commit: r1894815 - /poi/trunk/jenkins/create_jobs.groovy
Author: centic
Date: Sun Nov 7 15:00:07 2021
New Revision: 1894815
URL: http://svn.apache.org/viewvc?rev=1894815&view=rev
Log:
Jenkins DSL: Adjust batchFile() in Test-Environment-Job as it only expects a String
Also fix incorrect nesting of "condition", "runner", "steps" elements inside "conditionalSteps"
Modified:
poi/trunk/jenkins/create_jobs.groovy
Modified: poi/trunk/jenkins/create_jobs.groovy
URL: http://svn.apache.org/viewvc/poi/trunk/jenkins/create_jobs.groovy?rev=1894815&r1=1894814&r2=1894815&view=diff
==============================================================================
--- poi/trunk/jenkins/create_jobs.groovy (original)
+++ poi/trunk/jenkins/create_jobs.groovy Sun Nov 7 15:00:07 2021
@@ -627,39 +627,39 @@ Unfortunately we often see builds break
steps {
conditionalSteps {
condition {
- fileExists('/usr', BaseDir.WORKSPACE)
- runner('DontRun')
- steps {
- shell(
- '''which svn || true
+ fileExists('/usr', BaseDir.WORKSPACE)
+ }
+ runner('DontRun')
+ steps {
+ shell(
+ '''which svn || true
which javac
javac -version
echo '<?xml version="1.0"?><project name="POI Build" default="test"><target name="test"><echo>Using Ant: ${ant.version} from ${ant.home}</echo></target></project>' > build.xml
''')
- ant {
- antInstallation(defaultAnt)
- }
+ ant {
+ antInstallation(defaultAnt)
+ }
- shell(
- '''which mvn || true
+ shell(
+ '''which mvn || true
mvn -version || true
echo '<project><modelVersion>4.0.0</modelVersion><groupId>org.apache.poi</groupId><artifactId>build-tst</artifactId><version>1.0.0</version></project>' > pom.xml
''')
- maven {
- goals('package')
- mavenInstallation(defaultMaven)
- }
- }
- }
+ maven {
+ goals('package')
+ mavenInstallation(defaultMaven)
+ }
+ }
}
conditionalSteps {
condition {
- fileExists('c:\\windows', BaseDir.WORKSPACE)
- runner('DontRun')
- steps {
- batchFile {
- command(
- '''@echo off
+ fileExists('c:\\windows', BaseDir.WORKSPACE)
+ }
+ runner('DontRun')
+ steps {
+ batchFile(
+ '''@echo off
echo .
where javac.exe
echo .
@@ -667,12 +667,10 @@ javac -version
echo .
echo ^<?xml version=^"1.0^"?^>^<project name=^"POI Build^" default=^"test^"^>^<target name=^"test^"^>^<echo^>Using Ant: ${ant.version} from ${ant.home}, ant detected Java ${ant.java.version} (may be different than actual Java sometimes...), using Java: ${java.version}/${java.runtime.version}/${java.vm.version}/${java.vm.name} from ${java.vm.vendor} on ${os.name}: ${os.version}^</echo^>^</target^>^</project^> > build.xml
''')
- }
- ant {
- antInstallation(defaultAntWindows)
- }
- }
- }
+ ant {
+ antInstallation(defaultAntWindows)
+ }
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org