Trigger a job with different "comment-added" GERRIT_EVENT

2016-08-05 Thread Shambhu Sharma
Hi, I have a build script which builds for different build types. Now I want to build different build types in my build script based on GERRIT_EVENT "comment_added" value. E.g. If comment added is "TRIGGER_BUILD_TYPE1", then only "TYPE1" build would compile and if comment is

Jenkins environment variable in "execute shell script on report host using ssh"

2016-02-18 Thread Shambhu Sharma
Hi, I am trying to do ssh to a linux machine and run some commands. I am using ssh agent plugin for this. I tried accessing Jenkins environment variable in "execute shell script on report host using ssh", but i am getting "command not found" error for that environment variable. Here is what

Trigger Jenkins build for dependent Gerrit Patches

2015-09-25 Thread Shambhu Sharma
Hi, I would like to know if there is any existing plugin or way to trigger Jenkins Job for dependent Gerrit Patches. I have multiple gits in gerrit server and want to trigger Jenkins build for every patchset creation. But it doesn't take care of two gerrit patches submitted in two

Multiple build's results to be reported on separate lines to Gerrit

2015-04-24 Thread Shambhu Sharma
Hi, I am new to Jenkins and Gerrit. I am using version of Gerrit (2.8.5) Jenkins (1.596.2). I have written multiple jobs in jenkins with Gerrit event trigger patchset created. I wanted the results to be displayed on separate lines in Gerrit under reviewer tab. Please let me know how