Jenkins install LTS 2.77 TLS error

Just tried an install of 2.77 LTS into a Centos 7 VM. When it started up, failed due to PXIX TLS error. Huh? On the plugin update. sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) Caused: sun.security.validator.ValidatorException: PKIX path building failed at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)… Continue reading Jenkins install LTS 2.77 TLS error

Converting ISO-8601 date strings to Date in Pentaho Kettle

So I was working on a conversion from a CSV dump from a student system to our internal label database. New school year, new students. I like to use the time format yyyy-MM-ddTHH:mmZ (ISO-8601, a standard format) for strings, but Pentaho Kettle has no explicit conversion from an ISO-8601 string date to a date type… Continue reading Converting ISO-8601 date strings to Date in Pentaho Kettle

Boolean Params in Jenkins

I modified an existing job in Jenkins to use a boolean flag, so I could check it if I wanted to disable the Maven tests. To do so, you define a property: mvn -Dmaven.skip.tests=true goal goal… So for the boolean config I set the name to maven.skip.tests and put in the Maven command config: -Dmaven.skip.tests=${maven.skip.tests}… Continue reading Boolean Params in Jenkins

Mockito and void methods on mock objects

SO I have class TestFoo { } TestFoo s1 = Mockito.mock(TestFoo.class); TestFoo s2 = Mockito.mock(TestFoo.class); The Mockito doc “Real Partial Mocks” says to do this: when(mock.someMethod()).thenCallRealMethod(); we get the error “The method when(T) in the type Mockito is not applicable for the arguments (void)” After 1/2 hour of hunting I found a hint, and refactored:… Continue reading Mockito and void methods on mock objects