diff --git a/handler/build.gradle b/handler/build.gradle index cef3772..75f03e7 100644 --- a/handler/build.gradle +++ b/handler/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'io.jeyong' -version = '1.0.0' +version = '1.0.2' ext { artifactName = 'k8s-sigterm-handler' diff --git a/jitpack.yml b/jitpack.yml index bee4037..3ba380f 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -9,4 +9,4 @@ before_install: install: - chmod +x ./handler/gradlew - - ./handler/gradlew build publishToMavenLocal + - ./handler/gradlew assemble publishToMavenLocal diff --git a/test/src/test/java/io/jeyong/test/SigtermListenerTest.java b/test/src/test/java/io/jeyong/test/SigtermListenerTest.java index 28d365f..8e86af0 100644 --- a/test/src/test/java/io/jeyong/test/SigtermListenerTest.java +++ b/test/src/test/java/io/jeyong/test/SigtermListenerTest.java @@ -52,7 +52,7 @@ void testSigtermHandling() throws Exception { sendSigtermToContainer(container); // then - Integer exitCode = container.getCurrentContainerInfo().getState().getExitCode(); + Long exitCode = container.getCurrentContainerInfo().getState().getExitCodeLong(); assertThat(exitCode).isEqualTo(0); } }