
I'm sorry, I think I made a mistake. Right after I pushed the first version, I received a BUILD FAILED email. Can I abandon the commit or something without messing it up further? -- Vishnu On Mon, Mar 30, 2015 at 8:20 PM, Vishnu Sreekumar <vishnu.srkmr@gmail.com> wrote:
Did an initial commit, please review..
-- Vishnu
On Mon, Mar 30, 2015 at 7:40 PM, Vishnu Sreekumar <vishnu.srkmr@gmail.com> wrote:
Thanks David, that was really helpfull.. :)
From what I understand so far, I need to create the yaml file which calls a shell-script (which should go inside shell-scripts/). The alert_patch....py with all the required options will be called withing the shell script. If this is correct, 1) What should be the trigger for the job?
I am still not sure what the scm is for. But as you suggested I'll start with the yaml file and the basic structure first.
-- Vishnu
On Mon, Mar 30, 2015 at 6:29 PM, David Caro Estevez <dcaroest@redhat.com> wrote:
Hi Vishnu!!
Thanks! Yes, had a lot of rest :)
Let me give you a small intro to jenkins yaml ;)
We keep all of the jobs yaml files (and related) here:
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs/confs;hb=refs/he...
There you can see three (for now) dirs that separate code by code type (sheel, groovy anbd yaml). Under sheel and groovy you'll find shell and groovy scripts/templates that we use inside the jenkins jobs themselves.
They might not be run per-se, as they might be templates and require to have some of the variables inside them resolved previously to be valid shell/groovy scripts.
Under yaml, you'll find all the yaml files we use, separated by function (as they are separated by jenkins-job-builder itself, like triggers, projects/jobs, scms, ...)
There's a small README file that explains a bit how it's organized and how to test it (I have to update it too ;/, we moved to a newer version of jenkins-job-builder last week and the parameters to run it have changed a bit)
So for this job, you can write everything up on a single yaml file under jobs/confs/yaml/system/ with a name like system_gerrit-patches-whatever.yaml
There you can just create a job section with a shell builder that does the calling.
You'll need also to include the jenkins scm,check first if you can use one of the already defined under scm for it, if not, feel free to add the new one you need there.
We can start just with creating that file and the basic structure of it, and move from there once reviewing on gerrit once the patch is there, what do you think?
On 03/30, Vishnu Sreekumar wrote:
Hi David,
Hope you had a good vacation!
So I write a yaml template and push it to the repository? I don't have access to the jenkins job builder. Do I need to commit the yaml file to a specific folder or anwhere in this tree [1] is ok?
[1]
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs;h=284a9e1579cdd0...
Thanks, Vishnu
-- David Caro
Red Hat S.L. Continuous Integration Engineer - EMEA ENG Virtualization R&D
Tel.: +420 532 294 605 Email: dcaro@redhat.com Web: www.redhat.com RHT Global #: 82-62605

hey vishnu, can you share the link to the patch? is it still blocking you? ----- Original Message -----
From: "Vishnu Sreekumar" <vishnu.srkmr@gmail.com> To: "David Caro Estevez" <dcaroest@redhat.com>, "Eyal Edri" <eedri@redhat.com>, infra@ovirt.org Sent: Monday, March 30, 2015 3:23:21 PM Subject: Re: Help with the jenkins yaml
I'm sorry, I think I made a mistake. Right after I pushed the first version, I received a BUILD FAILED email. Can I abandon the commit or something without messing it up further?
-- Vishnu
On Mon, Mar 30, 2015 at 8:20 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com > wrote:
Did an initial commit, please review..
-- Vishnu
On Mon, Mar 30, 2015 at 7:40 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com > wrote:
Thanks David, that was really helpfull.. :)
From what I understand so far, I need to create the yaml file which calls a shell-script (which should go inside shell-scripts/). The alert_patch....py with all the required options will be called withing the shell script. If this is correct, 1) What should be the trigger for the job?
I am still not sure what the scm is for. But as you suggested I'll start with the yaml file and the basic structure first.
-- Vishnu
On Mon, Mar 30, 2015 at 6:29 PM, David Caro Estevez < dcaroest@redhat.com > wrote:
Hi Vishnu!!
Thanks! Yes, had a lot of rest :)
Let me give you a small intro to jenkins yaml ;)
We keep all of the jobs yaml files (and related) here:
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs/confs;hb=refs/he...
There you can see three (for now) dirs that separate code by code type (sheel, groovy anbd yaml). Under sheel and groovy you'll find shell and groovy scripts/templates that we use inside the jenkins jobs themselves.
They might not be run per-se, as they might be templates and require to have some of the variables inside them resolved previously to be valid shell/groovy scripts.
Under yaml, you'll find all the yaml files we use, separated by function (as they are separated by jenkins-job-builder itself, like triggers, projects/jobs, scms, ...)
There's a small README file that explains a bit how it's organized and how to test it (I have to update it too ;/, we moved to a newer version of jenkins-job-builder last week and the parameters to run it have changed a bit)
So for this job, you can write everything up on a single yaml file under jobs/confs/yaml/system/ with a name like system_gerrit-patches-whatever.yaml
There you can just create a job section with a shell builder that does the calling.
You'll need also to include the jenkins scm,check first if you can use one of the already defined under scm for it, if not, feel free to add the new one you need there.
We can start just with creating that file and the basic structure of it, and move from there once reviewing on gerrit once the patch is there, what do you think?
On 03/30, Vishnu Sreekumar wrote:
Hi David,
Hope you had a good vacation!
So I write a yaml template and push it to the repository? I don't have access to the jenkins job builder. Do I need to commit the yaml file to a specific folder or anwhere in this tree [1] is ok?
[1] https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs;h=284a9e1579cdd0...
Thanks, Vishnu
-- David Caro
Red Hat S.L. Continuous Integration Engineer - EMEA ENG Virtualization R&D
Tel.: +420 532 294 605 Email: dcaro@redhat.com Web: www.redhat.com RHT Global #: 82-62605
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra

https://gerrit.ovirt.org/#/c/39357/ I fixed the intendation error. But the build still failed. I've the below questions. 1) How do I specify the full path to the script? 2) As which user does it connects to the gerrit server? (I've left the --user option blank) 3) How about the ssh authentication? Thanks, Vishnu On Wed, Apr 1, 2015 at 9:19 PM, Eyal Edri <eedri@redhat.com> wrote:
hey vishnu, can you share the link to the patch? is it still blocking you?
----- Original Message -----
From: "Vishnu Sreekumar" <vishnu.srkmr@gmail.com> To: "David Caro Estevez" <dcaroest@redhat.com>, "Eyal Edri" < eedri@redhat.com>, infra@ovirt.org Sent: Monday, March 30, 2015 3:23:21 PM Subject: Re: Help with the jenkins yaml
I'm sorry, I think I made a mistake. Right after I pushed the first version, I received a BUILD FAILED email. Can I abandon the commit or something without messing it up further?
-- Vishnu
On Mon, Mar 30, 2015 at 8:20 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com > wrote:
Did an initial commit, please review..
-- Vishnu
On Mon, Mar 30, 2015 at 7:40 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com > wrote:
Thanks David, that was really helpfull.. :)
From what I understand so far, I need to create the yaml file which calls a shell-script (which should go inside shell-scripts/). The alert_patch....py with all the required options will be called withing the shell script. If this is correct, 1) What should be the trigger for the job?
I am still not sure what the scm is for. But as you suggested I'll start with the yaml file and the basic structure first.
-- Vishnu
On Mon, Mar 30, 2015 at 6:29 PM, David Caro Estevez < dcaroest@redhat.com > wrote:
Hi Vishnu!!
Thanks! Yes, had a lot of rest :)
Let me give you a small intro to jenkins yaml ;)
We keep all of the jobs yaml files (and related) here:
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs/confs;hb=refs/he...
There you can see three (for now) dirs that separate code by code type (sheel, groovy anbd yaml). Under sheel and groovy you'll find shell and groovy scripts/templates that we use inside the jenkins jobs themselves.
They might not be run per-se, as they might be templates and require to
some of the variables inside them resolved previously to be valid shell/groovy scripts.
Under yaml, you'll find all the yaml files we use, separated by function (as they are separated by jenkins-job-builder itself, like triggers, projects/jobs, scms, ...)
There's a small README file that explains a bit how it's organized and how to test it (I have to update it too ;/, we moved to a newer version of jenkins-job-builder last week and the parameters to run it have changed a bit)
So for this job, you can write everything up on a single yaml file under jobs/confs/yaml/system/ with a name like system_gerrit-patches-whatever.yaml
There you can just create a job section with a shell builder that does
have the
calling.
You'll need also to include the jenkins scm,check first if you can use one of the already defined under scm for it, if not, feel free to add the new one you need there.
We can start just with creating that file and the basic structure of it, and move from there once reviewing on gerrit once the patch is there, what do you think?
On 03/30, Vishnu Sreekumar wrote:
Hi David,
Hope you had a good vacation!
So I write a yaml template and push it to the repository? I don't have access to the jenkins job builder. Do I need to commit the yaml file to a specific folder or anwhere in this tree [1] is ok?
[1]
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs;h=284a9e1579cdd0...
Thanks, Vishnu
-- David Caro
Red Hat S.L. Continuous Integration Engineer - EMEA ENG Virtualization R&D
Tel.: +420 532 294 605 Email: dcaro@redhat.com Web: www.redhat.com RHT Global #: 82-62605
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra

----- Original Message -----
From: "Vishnu Sreekumar" <vishnu.srkmr@gmail.com> To: "Eyal Edri" <eedri@redhat.com> Cc: infra@ovirt.org Sent: Wednesday, April 1, 2015 4:22:00 PM Subject: Re: Help with the jenkins yaml
https://gerrit.ovirt.org/#/c/39357/
I fixed the intendation error. But the build still failed.
it looks like it's failing on another patch, related to node: diff -u /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/old_xmls/ovirt-node_master_create-iso-el6_merged /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/new_xmls/ovirt-node_master_create-iso-el6_merged --- /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/old_xmls/ovirt-node_master_create-iso-el6_merged 2015-04-01 07:34:38.000000000 +0100 +++ /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/new_xmls/ovirt-node_master_create-iso-el6_merged 2015-04-01 07:34:18.000000000 +0100 @@ -19,83 +19,42 @@ <artifactNumToKeep>-1</artifactNumToKeep> david - is that possible? or the job isn't configured well?
I've the below questions.
1) How do I specify the full path to the script? 2) As which user does it connects to the gerrit server? (I've left the --user option blank) 3) How about the ssh authentication?
Thanks, Vishnu
On Wed, Apr 1, 2015 at 9:19 PM, Eyal Edri < eedri@redhat.com > wrote:
hey vishnu, can you share the link to the patch? is it still blocking you?
----- Original Message -----
From: "Vishnu Sreekumar" < vishnu.srkmr@gmail.com > To: "David Caro Estevez" < dcaroest@redhat.com >, "Eyal Edri" < eedri@redhat.com >, infra@ovirt.org Sent: Monday, March 30, 2015 3:23:21 PM Subject: Re: Help with the jenkins yaml
I'm sorry, I think I made a mistake. Right after I pushed the first version, I received a BUILD FAILED email. Can I abandon the commit or something without messing it up further?
-- Vishnu
On Mon, Mar 30, 2015 at 8:20 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com
wrote:
Did an initial commit, please review..
-- Vishnu
On Mon, Mar 30, 2015 at 7:40 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com
wrote:
Thanks David, that was really helpfull.. :)
From what I understand so far, I need to create the yaml file which calls a shell-script (which should go inside shell-scripts/). The alert_patch...py with all the required options will be called withing the shell script. If this is correct, 1) What should be the trigger for the job?
I am still not sure what the scm is for. But as you suggested I'll start with the yaml file and the basic structure first.
-- Vishnu
On Mon, Mar 30, 2015 at 6:29 PM, David Caro Estevez < dcaroest@redhat.com > wrote:
Hi Vishnu!!
Thanks! Yes, had a lot of rest :)
Let me give you a small intro to jenkins yaml ;)
We keep all of the jobs yaml files (and related) here:
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs/confs;hb=refs/he...
There you can see three (for now) dirs that separate code by code type (sheel, groovy anbd yaml). Under sheel and groovy you'll find shell and groovy scripts/templates that we use inside the jenkins jobs themselves.
They might not be run per-se, as they might be templates and require to have some of the variables inside them resolved previously to be valid shell/groovy scripts.
Under yaml, you'll find all the yaml files we use, separated by function (as they are separated by jenkins-job-builder itself, like triggers, projects/jobs, scms, ...)
There's a small README file that explains a bit how it's organized and how to test it (I have to update it too ;/, we moved to a newer version of jenkins-job-builder last week and the parameters to run it have changed a bit)
So for this job, you can write everything up on a single yaml file under jobs/confs/yaml/system/ with a name like system_gerrit-patches-whatever.yaml
There you can just create a job section with a shell builder that does the calling.
You'll need also to include the jenkins scm,check first if you can use one of the already defined under scm for it, if not, feel free to add the new one you need there.
We can start just with creating that file and the basic structure of it, and move from there once reviewing on gerrit once the patch is there, what do you think?
On 03/30, Vishnu Sreekumar wrote:
Hi David,
Hope you had a good vacation!
So I write a yaml template and push it to the repository? I don't have access to the jenkins job builder. Do I need to commit the yaml file to a specific folder or anwhere in this tree [1] is ok?
[1] https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs;h=284a9e1579cdd0...
Thanks, Vishnu
-- David Caro
Red Hat S.L. Continuous Integration Engineer - EMEA ENG Virtualization R&D
Tel.: +420 532 294 605 Email: dcaro@redhat.com Web: www.redhat.com RHT Global #: 82-62605
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra

It was missing a rebase. It's also missing a semicolon ':', that's what it's failing ----- Original Message -----
From: "Eyal Edri" <eedri@redhat.com> To: "Vishnu Sreekumar" <vishnu.srkmr@gmail.com>, "Tolik Litovsky" <tlitovsk@redhat.com> Cc: infra@ovirt.org Sent: Wednesday, April 1, 2015 3:27:00 PM Subject: Re: Help with the jenkins yaml
----- Original Message -----
From: "Vishnu Sreekumar" <vishnu.srkmr@gmail.com> To: "Eyal Edri" <eedri@redhat.com> Cc: infra@ovirt.org Sent: Wednesday, April 1, 2015 4:22:00 PM Subject: Re: Help with the jenkins yaml
https://gerrit.ovirt.org/#/c/39357/
I fixed the intendation error. But the build still failed.
it looks like it's failing on another patch, related to node: diff -u /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/old_xmls/ovirt-node_master_create-iso-el6_merged /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/new_xmls/ovirt-node_master_create-iso-el6_merged --- /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/old_xmls/ovirt-node_master_create-iso-el6_merged 2015-04-01 07:34:38.000000000 +0100 +++ /var/lib/jenkins/workspace/jenkins_master_check-yaml_gerrit/new_xmls/ovirt-node_master_create-iso-el6_merged 2015-04-01 07:34:18.000000000 +0100 @@ -19,83 +19,42 @@ <artifactNumToKeep>-1</artifactNumToKeep>
david - is that possible? or the job isn't configured well?
I've the below questions.
1) How do I specify the full path to the script? 2) As which user does it connects to the gerrit server? (I've left the --user option blank) 3) How about the ssh authentication?
Thanks, Vishnu
On Wed, Apr 1, 2015 at 9:19 PM, Eyal Edri < eedri@redhat.com > wrote:
hey vishnu, can you share the link to the patch? is it still blocking you?
----- Original Message -----
From: "Vishnu Sreekumar" < vishnu.srkmr@gmail.com > To: "David Caro Estevez" < dcaroest@redhat.com >, "Eyal Edri" < eedri@redhat.com >, infra@ovirt.org Sent: Monday, March 30, 2015 3:23:21 PM Subject: Re: Help with the jenkins yaml
I'm sorry, I think I made a mistake. Right after I pushed the first version, I received a BUILD FAILED email. Can I abandon the commit or something without messing it up further?
-- Vishnu
On Mon, Mar 30, 2015 at 8:20 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com
wrote:
Did an initial commit, please review..
-- Vishnu
On Mon, Mar 30, 2015 at 7:40 PM, Vishnu Sreekumar < vishnu.srkmr@gmail.com
wrote:
Thanks David, that was really helpfull.. :)
From what I understand so far, I need to create the yaml file which calls a shell-script (which should go inside shell-scripts/). The alert_patch...py with all the required options will be called withing the shell script. If this is correct, 1) What should be the trigger for the job?
I am still not sure what the scm is for. But as you suggested I'll start with the yaml file and the basic structure first.
-- Vishnu
On Mon, Mar 30, 2015 at 6:29 PM, David Caro Estevez < dcaroest@redhat.com
wrote:
Hi Vishnu!!
Thanks! Yes, had a lot of rest :)
Let me give you a small intro to jenkins yaml ;)
We keep all of the jobs yaml files (and related) here:
https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs/confs;hb=refs/he...
There you can see three (for now) dirs that separate code by code type (sheel, groovy anbd yaml). Under sheel and groovy you'll find shell and groovy scripts/templates that we use inside the jenkins jobs themselves.
They might not be run per-se, as they might be templates and require to have some of the variables inside them resolved previously to be valid shell/groovy scripts.
Under yaml, you'll find all the yaml files we use, separated by function (as they are separated by jenkins-job-builder itself, like triggers, projects/jobs, scms, ...)
There's a small README file that explains a bit how it's organized and how to test it (I have to update it too ;/, we moved to a newer version of jenkins-job-builder last week and the parameters to run it have changed a bit)
So for this job, you can write everything up on a single yaml file under jobs/confs/yaml/system/ with a name like system_gerrit-patches-whatever.yaml
There you can just create a job section with a shell builder that does the calling.
You'll need also to include the jenkins scm,check first if you can use one of the already defined under scm for it, if not, feel free to add the new one you need there.
We can start just with creating that file and the basic structure of it, and move from there once reviewing on gerrit once the patch is there, what do you think?
On 03/30, Vishnu Sreekumar wrote:
Hi David,
Hope you had a good vacation!
So I write a yaml template and push it to the repository? I don't have access to the jenkins job builder. Do I need to commit the yaml file to a specific folder or anwhere in this tree [1] is ok?
[1] https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=tree;f=jobs;h=284a9e1579cdd0...
Thanks, Vishnu
-- David Caro
Red Hat S.L. Continuous Integration Engineer - EMEA ENG Virtualization R&D
Tel.: +420 532 294 605 Email: dcaro@redhat.com Web: www.redhat.com RHT Global #: 82-62605
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra
participants (3)
-
David Caro Estevez
-
Eyal Edri
-
Vishnu Sreekumar