diff --git a/Dockerfile b/Dockerfile
index 899db7d90..d6b28bf22 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,8 @@ RUN curl -L -o maven.tar.gz https://dlcdn.apache.org/maven/maven-3/3.8.8/binarie
RUN ./maven/bin/mvn --version && \
./maven/bin/mvn clean package
-FROM registry.ci.openshift.org/origin/4.16:jenkins
+# FROM registry.ci.openshift.org/origin/4.16:jenkins
+FROM registry.redhat.io/ocp-tools-4/jenkins-rhel8:v4.14.0
RUN rm /opt/openshift/plugins/openshift-sync.jpi
COPY --from=builder /java/src/github.com/openshift/jenkins-sync-plugin/target/openshift-sync.hpi /opt/openshift/plugins
RUN mv /opt/openshift/plugins/openshift-sync.hpi /opt/openshift/plugins/openshift-sync.jpi
diff --git a/pom.xml b/pom.xml
index c7d380154..b09002a55 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
1.1.0
999999-SNAPSHOT
- 2.426.2
+ 2.440.3
INFO
@@ -114,11 +114,11 @@
-
+
io.jenkins.tools.bom
- bom-2.426.x
- 2705.vf5c48c31285b_
+ bom-2.440.x
+ 3435.v238d66a_043fb_
import
pom
@@ -127,35 +127,21 @@
joda-time
2.12.5
+
- org.jenkins-ci.plugins.workflow
- workflow-multibranch
- 773.vc4fe1378f1d5
+ io.jenkins.plugins
+ asm-api
+ 9.6-3.v2e1fa_b_338cd7
- org.jenkins-ci.plugins.workflow
- workflow-support
- 865.v43e78cc44e0d
+ commons-io
+ commons-io
+ 2.16.1
- org.jenkins-ci.plugins.pipeline-stage-view
- pipeline-rest-api
- 2.34
-
-
- org.jenkins-ci.plugins
- git
- 5.2.1
-
-
- io.jenkins.blueocean
- blueocean-rest
- 1.27.9
-
-
- org.csanchez.jenkins.plugins
- kubernetes
- 4174.v4230d0ccd951
+ io.jenkins.plugins.mina-sshd-api
+ mina-sshd-api-common
+ 2.14.0-131.v04e9b_6b_e0362
diff --git a/src/main/java/io/fabric8/jenkins/openshiftsync/BuildConfigToJobMapper.java b/src/main/java/io/fabric8/jenkins/openshiftsync/BuildConfigToJobMapper.java
index 7f40cf2fd..7b750900f 100644
--- a/src/main/java/io/fabric8/jenkins/openshiftsync/BuildConfigToJobMapper.java
+++ b/src/main/java/io/fabric8/jenkins/openshiftsync/BuildConfigToJobMapper.java
@@ -35,6 +35,7 @@
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.multibranch.BranchJobProperty;
+import hudson.model.Descriptor.FormException;
import hudson.plugins.git.BranchSpec;
import hudson.plugins.git.GitSCM;
import hudson.plugins.git.SubmoduleConfig;
@@ -108,7 +109,12 @@ public static FlowDefinition mapBuildConfigToFlow(BuildConfig bc) throws IOExcep
return null;
}
} else {
- return new CpsFlowDefinition(jenkinsfile, true);
+ try {
+ return new CpsFlowDefinition(jenkinsfile, true);
+ } catch (FormException e) {
+ // TODO Auto-generated catch block
+ throw new RuntimeException(e);
+ }
}
}
diff --git a/src/main/java/io/fabric8/jenkins/openshiftsync/CredentialsUtils.java b/src/main/java/io/fabric8/jenkins/openshiftsync/CredentialsUtils.java
index 3e68d07ab..1a072c94f 100644
--- a/src/main/java/io/fabric8/jenkins/openshiftsync/CredentialsUtils.java
+++ b/src/main/java/io/fabric8/jenkins/openshiftsync/CredentialsUtils.java
@@ -51,6 +51,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import hudson.model.Fingerprint;
+import hudson.model.Descriptor.FormException;
import hudson.security.ACL;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.ObjectMeta;
@@ -485,8 +486,13 @@ private static Credentials newUsernamePasswordCredentials(String secretName, Str
return null;
}
- return new UsernamePasswordCredentialsImpl(GLOBAL, secretName, secretName,
- new String(DECODER.decode(usernameData), UTF_8), new String(DECODER.decode(passwordData), UTF_8));
+ try {
+ return new UsernamePasswordCredentialsImpl(GLOBAL, secretName, secretName,
+ new String(DECODER.decode(usernameData), UTF_8), new String(DECODER.decode(passwordData), UTF_8));
+ } catch (FormException e) {
+ // TODO Auto-generated catch block
+ throw new RuntimeException(e);
+ }
}
/**