Skip to content

Commit

Permalink
reduce job timeout and output OOM related system settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed May 7, 2024
1 parent 82a852e commit 9c5ab70
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pipeline {
options {
timeout(time: 40, unit: 'MINUTES')
timeout(time: 15, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds(abortPrevious: true)
}
Expand All @@ -15,7 +15,18 @@ pipeline {
stage('Build') {
steps {
wrap([$class: 'Xvnc', useXauthority: true]) {
sh """
sh """#!/bin/bash
set -eux
// https://www.elastic.co/cn/blog/we-are-out-of-memory-systemd-process-limits
// output some system settings to troubleshoot OOMs
ulimit -a
cat /proc/meminfo
cat /proc/sys/kernel/pid_max
cat /proc/sys/kernel/threads-max
cat /sys/fs/cgroup/pids/system.slice/runsvdir.service/pids.max
java -XX:+PrintFlagsFinal -version | findstr HeapSize
mvn clean verify \
org.eclipse.dash:license-tool-plugin:license-check \
-B ${env.BRANCH_NAME=='master' ? '-Psign': ''} \
Expand Down

0 comments on commit 9c5ab70

Please sign in to comment.