gradle build

89 views
Skip to first unread message

Sean

unread,
Aug 8, 2021, 6:44:54 AM8/8/21
to rundeck-discuss
Hello All, I didn’t get this step “gradle build - build the zip file and copy to libtext” from - kubernetes plugin doc on rundeck. Could someone please explain? 


Thanks 
Sean

Sean

unread,
Aug 8, 2021, 7:10:00 AM8/8/21
to rundeck-discuss

Also seeing below error on running the job, I added the Kubernetes plugin from plugin option on rundeck gear box icon

Traceback (most recent call last):
File "/Users/myuser/rundeck/libext/cache/kubernetes-plugin-1.0.12/deployment-create.py", line 5, in <module>
import yaml
ImportError: No module named yaml
Failed: NonZeroResultCode: Script result code was: 1
Execution failed: 4 in project razorpay_poc: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [localhost: NonZeroResultCode: Script result code was: 1 + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, Node failures: {localhost=[NonZeroResultCode: Script result code was: 1 + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, status: failed]

rac...@rundeck.com

unread,
Aug 8, 2021, 6:34:11 PM8/8/21
to rundeck-discuss
Hi Sean,

Do you have the PyYAML module? take a look at this and this (try to check/install it using the pip3 command).

Hope it helps!

Sean

unread,
Aug 9, 2021, 1:23:46 AM8/9/21
to rundeck-discuss

hey thanks for your reply,

I'm running rundeck using war file and installed Kubernetes plugin from gear box icon. 
I've pyyaml locally installed. do I need to installed It somewhere else ? please suggest


thanks
Sean

Sean

unread,
Aug 9, 2021, 2:03:31 AM8/9/21
to rundeck-discuss
yaml import error fixed but seeing below error

Traceback (most recent call last):
File "/Users/myuser/rundeck/libext/cache/kubernetes-plugin-1.0.12/deployment-create.py", line 5, in <module>
import yaml
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/yaml/__init__.py", line 399
class YAMLObject(metaclass=YAMLObjectMetaclass):
^
SyntaxError: invalid syntax
Failed: NonZeroResultCode: Script result code was: 1

Sean

unread,
Aug 9, 2021, 4:16:48 AM8/9/21
to rundeck-discuss

seems like rundeck picking python 2 version for executing the deployment file. can we change it to python3 ?
locally I set the alias but not working 

rac...@rundeck.com

unread,
Aug 9, 2021, 11:00:08 AM8/9/21
to rundeck-discuss
Hi Sean,

Did you try it this way? (seeing your path I assume you're using Mac OS :)

Regards!

Sean

unread,
Aug 9, 2021, 12:01:25 PM8/9/21
to rundeck-discuss
Hello, yeah problem solved, the issue was in plugin.yaml file, where we using interperator "python -u" for K8 resource executor. I changed it to "python3 -u" , build and updated the plugin in libtext folder. working fine now. 

It wasn't picking the python3 version even after updating the alias in Mac. 


Thanks
Sean

Reply all
Reply to author
Forward
0 new messages