Skip to content

Commit e589a16

Browse files
committed
Added additional deps and vnc support to the build
1 parent 3468a1e commit e589a16

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

DOCKER_BUILD/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ RUN dnf install -y java-11-openjdk-devel \
1717
ruby-devel \
1818
rubygems \
1919
asciidoc \
20-
xmlto
20+
xmlto \
21+
nano
2122

2223
RUN wget https://services.gradle.org/distributions/gradle-7.6-bin.zip -P /tmp
2324
RUN mkdir /opt/gradle

Jenkinsfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ spec:
2626
stage('Build') {
2727
steps {
2828
container('sparkplug-build') {
29-
sh './gradlew clean build'
29+
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
30+
sh './gradlew clean build'
31+
}
3032
}
3133
}
3234
}

gradlew

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ APP_NAME="Gradle"
8686
APP_BASE_NAME=${0##*/}
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx1536m" "-Xms64m" "-Dfile.encoding=UTF-8"'
89+
DEFAULT_JVM_OPTS='"-Xmx1536m" "-Xms64m" "-Dfile.encoding=UTF-8" "-Djava.awt.headless=true"'
9090

9191
# Use the maximum available, or set MAX_FD != -1 to use that value.
9292
MAX_FD=maximum

0 commit comments

Comments
 (0)