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/script11414924734820877788.py
Traceback (most recent call last):
File “/var/lib/jenkins/tools/jython/tmp/script11414924734820877788.py”, line 1, in
from weblogic.management.scripting.utils import WLSTUtil

i create wl.py when i ran wlst.sh >

wls:/offline> writeIniFile(“wl.py”) 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