From 6f56196df03af78a45a30cb8cd342ef7ab8dd2b7 Mon Sep 17 00:00:00 2001 From: tomstark99 Date: Tue, 18 Jun 2024 17:50:38 +0100 Subject: [PATCH] changed to static class --- .ci/dev/pr-code-checks/Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.ci/dev/pr-code-checks/Jenkinsfile b/.ci/dev/pr-code-checks/Jenkinsfile index 11188d8fd1..17767329e0 100644 --- a/.ci/dev/pr-code-checks/Jenkinsfile +++ b/.ci/dev/pr-code-checks/Jenkinsfile @@ -1,9 +1,6 @@ @Library('corda-shared-build-pipeline-steps') import static com.r3.build.BuildControl.killAllExistingBuildsForJob -import com.r3.build.utils.PipelineUtils - -@Field -PipelineUtils pipelineUtils = new PipelineUtils(this) +import static com.r3.build.utils.PipelineUtils killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger()) @@ -106,6 +103,6 @@ pipeline { } def githubPRComment(String commentText, String pattern) { - Long userCommentId = pipelineUtils.getUserCommentIdMatchingPattern(pattern) - userCommentId == null ? pipelineUtils.addGitHubComment(commentText) : pipelineUtils.editGitHubComment(commentText, userCommentId) + Long userCommentId = PipelineUtils.getUserCommentIdMatchingPattern(pattern) + userCommentId == null ? PipelineUtils.addGitHubComment(commentText) : PipelineUtils.editGitHubComment(commentText, userCommentId) } \ No newline at end of file