I have a series of scripts that I run as a workflow job, and one of those scripts requires a jar to be executed, however CircleCI is for some reason killing the java task/process a few seconds into its execution.
The log tells me
./scripts/remap.sh: line 79: 377 Killed java -jar "$workdir/BuildData/bin/SpecialSource-2.jar" map -i "$jarpath.jar" -m "$classmappings" -o "$jarpath-cl.jar"
My config is currently:
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
# patch sources prior to compiling
patch:
docker:
- image: circleci/openjdk:8-jdk
steps:
- checkout
- run:
name: Set Github Credentials
command: |
git config --global user.email "circleci@circleci.com"
git config --global user.name "CircleCI"
- run:
name: Patch Sources
command: ./scissors patch
build:
docker:
- image: circleci/openjdk:8-jdk
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: "-Xmx3G"
JAVA_OPTS: "-Xms3G -Xmx3G"
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: mvn dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
- run: mvn clean install
workflows:
version: 2
patch_and_build:
jobs:
- patch
- build:
requires:
- patch
I’ve tried removing/adding the JAVA and MAVEN environment options,and nothing seems to make a different in my build.
Any information on why this process is being killed or how to fix it would be great. Thanks!