-
Improvement
-
Resolution: Unresolved
-
Minor
-
Jenkins v2.3x, Rundeck Plugin v3.5.4
Am looking for help on how to use Rundeck within pipeline script (Jenkinsfile). For quite sometime now, I have been searching the Net but could not find useful leads.
Any pointers would be much appreciated.
NOTE:
1) As a workaround, I installed Rundeck CLI tool in the Jenkins master and have written short shell scripts which are then embedded within the main Jenkinsfile.
I also want to call rundeck from declarative pipeline scripts. There doesn't seem to be any syntax available to do this. It's really unfortunate as moving to the declarative pipeline has really cleaned up jenkins for us.
Our hack is to have another parameterized job that just calls rundeck, as the Rundeck plugin works in the jenkins UI. We then trigger that job from our multibranch pipeline scripts.