Hi Sandeep,
I describe you all my configuration bellow and how to.
Required:
My version of Sanotype Nexus: 2.11.1-01 (you need to have this version for the plugin)
My version of Rundeck: 2.4.0-1
The plugin (I copied from my nexus) attached.
How to:
1 - Put the folder rundeck-nexus-plugin-2.11.1-01 (attached) in the folder plugin-repository/ of your Nexus app (or directly /sonatype-work/plugin-repository/ in my case). Your folder must be like (in my case): /sonatype-work/plugin-repository/rundeck-nexus-plugin-2.11.1-01/
2 - Restart your Nexus app
3 - Login to your Nexus app and go the menu "Administrator/Plugin Console" like bellow:
4 - Normally you will have the rundeck plugin with the status: "activated", if it doesn't work it's status: "Broken" (it's not good)
5 - Now, test if you receive a JSON file enter the URL like below:
http://mynexus/service/local/rundeck/options/version?r=snapshots&g=com.compagny&a=myproject
Nexus App hostname: mynexus
Repository: snapshots
GroupId: com.compagny
Project: myproject
If you already deploy some snapshot version of your project on your Nexus app you will have a JSON like below:
[{"name":"1.0.3-SNAPSHOT (2015-01-23T15:45:41)","value":"1.0.3-SNAPSHOT"},{"name":"1.0.2-SNAPSHOT (2015-01-23T15:29:17)","value":"1.0.2-SNAPSHOT"},{"name":"1.0.1-SNAPSHOT (2015-01-21T11:15:12)","value":"1.0.1-SNAPSHOT"},{"name":"1.0-SNAPSHOT (2015-01-14T17:18:39)","value":"1.0-SNAPSHOT"}]6 - OK, everything work, now we go to configure the Rundeck job.
On my Rundeck v2.4.0-1 app (same I use a docker):
1 - Edit your job
2 - In the "Options" part click on "Add an option" like below:
3 - Edit your option like below (Change in red): In the remote URL you put your URL we test before
4 - Save your job and know you have this, you can select your version you want to deploy:
Hope that will help you!
Thibaut.