Run jython (via plugin) on Jenkins but need import modules of WLST (weblogic)

hi hope are fine.

I want to run weblogic commands, mainly “stop” an application. But when I run my .py script I get the following error
$ /usr/java/jdk1.8.0_92//bin/java -Xmx512m -jar /var/lib/jenkins/tools/jython/jython.jar /var/lib/jenkins/tools/jython/tmp/
Traceback (most recent call last):
File “/var/lib/jenkins/tools/jython/tmp/”, line 1, in
from import WLSTUtil

i create when i ran >

wls:/offline> writeIniFile(“”) thanks…

That seems specific to Weblogic and unrelated to Jenkins. Check with the Weblogic organization for their help.

You may want to reconsider the Java 8 patch version that you are using. Java 1.8.0_372 is the current patch version. Java 1.8.0_92 has many, many security issues that can be resolved by using the current patch version.

1 Like