From acd3d3194247c0c7c39213573b8b81c995cccf4c Mon Sep 17 00:00:00 2001 From: Duy Luong Date: Wed, 10 Apr 2024 14:55:21 +0200 Subject: [PATCH 1/7] Update to latest jenkins --- Jenkinsfile | 12 +++++++++++- pom.xml | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 48bf230..16809bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1 +1,11 @@ -buildPlugin() \ No newline at end of file +/* + See the documentation for more options: + https://github.com/jenkins-infra/pipeline-library/ +*/ +buildPlugin( + forkCount: '1C', // Run a JVM per core in tests + useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests + configurations: [ + [platform: 'linux', jdk: 21], + [platform: 'windows', jdk: 17], +]) \ No newline at end of file diff --git a/pom.xml b/pom.xml index 458e615..5d09c74 100644 --- a/pom.xml +++ b/pom.xml @@ -19,8 +19,8 @@ - 1.625.3 - 8 + 2.440.2 + 17 1.20 2.13.13 - 3.12.0 - 1.0.17 + 1.0.18 4.5.13 From 36c0b7fbeab45038cfce7db0ff01e27e332451e0 Mon Sep 17 00:00:00 2001 From: Duy Luong Date: Wed, 10 Apr 2024 15:22:59 +0200 Subject: [PATCH 6/7] Update maven --- src/main/resources/index.jelly | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/main/resources/index.jelly diff --git a/src/main/resources/index.jelly b/src/main/resources/index.jelly new file mode 100644 index 0000000..244a8e1 --- /dev/null +++ b/src/main/resources/index.jelly @@ -0,0 +1,4 @@ + +
+ Katalon plugin for Jenkins +
\ No newline at end of file From 921bb697e283c96a82d416266ae0dd035594f2b5 Mon Sep 17 00:00:00 2001 From: Duy Luong Date: Wed, 10 Apr 2024 15:30:06 +0200 Subject: [PATCH 7/7] Update maven --- .../plugin/helper/ExecuteKatalonStudioHelper.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/katalon/jenkins/plugin/helper/ExecuteKatalonStudioHelper.java b/src/main/java/com/katalon/jenkins/plugin/helper/ExecuteKatalonStudioHelper.java index af5ea76..b7e7488 100644 --- a/src/main/java/com/katalon/jenkins/plugin/helper/ExecuteKatalonStudioHelper.java +++ b/src/main/java/com/katalon/jenkins/plugin/helper/ExecuteKatalonStudioHelper.java @@ -7,6 +7,7 @@ import hudson.FilePath; import hudson.Launcher; import hudson.model.TaskListener; +import hudson.remoting.VirtualChannel; import jenkins.security.MasterToSlaveCallable; import java.util.HashMap; @@ -26,7 +27,11 @@ public static boolean executeKatalon( String xvfbConfiguration) { Logger logger = new JenkinsLogger(taskListener); try { - return launcher.getChannel().call(new MasterToSlaveCallable() { + VirtualChannel channel = launcher.getChannel(); + if (channel == null) { + throw new Exception("Channel not found!"); + } + return channel.call(new MasterToSlaveCallable() { @Override public Boolean call() throws Exception { @@ -60,4 +65,4 @@ public Boolean call() throws Exception { return false; } } -} +} \ No newline at end of file