[Starlingx-discuss] [build-report] STX_build_stein_master - Build # 23 - Failure!
Project: STX_build_stein_master Build #: 23 Status: Failure Timestamp: 20190122T090000Z Check logs at: $PUBLISH_LOGS_URL -------------------------------------------------------------------------------- Parameters BUILD_CONTAINERS: false
Scripting error on my part. Variable used before set. A rebuild is underway. Scott On 2019-01-22 4:00 a.m., build.starlingx@gmail.com wrote:
Project: STX_build_stein_master Build #: 23 Status: Failure Timestamp: 20190122T090000Z
Check logs at: $PUBLISH_LOGS_URL -------------------------------------------------------------------------------- Parameters
BUILD_CONTAINERS: false
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
On Tue, Jan 22, 2019 at 9:03 AM Scott Little <scott.little@windriver.com> wrote:
Scripting error on my part. Variable used before set. A rebuild is underway.
Thanks, Scott Please also send the link of the script so we can send patches to imrpove it Regards
Scott
On 2019-01-22 4:00 a.m., build.starlingx@gmail.com wrote:
Project: STX_build_stein_master Build #: 23 Status: Failure Timestamp: 20190122T090000Z
Check logs at: $PUBLISH_LOGS_URL -------------------------------------------------------------------------------- Parameters
BUILD_CONTAINERS: false
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
That raises an interesting subject. The script in question is a jenkins script. Part of a larger build job, which in turn is a part of a family of jobs that do various sub-tasks. The editing is through the jenkins web-gui, and that will not be made accessible to the public. I'm troubled that Jenkins doesn't seem to keep an edit history of 'config' changes out of the box, and I've yet to spot a plugin that adds this feature. I've been pondering making the jenkins home directory one big git, with a lot of excludes for all the build history, logs, workspaces and such. Has anyone solved this? A git could readily be published. In the mean time, the script content can be inferred from the various build logs. A successful build would be more informative. e.g. http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060... <http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060000Z/logs/> Accepting feedback/revisions would be another matter entirely. We'll probably stick with e-mail to myself, and build.starlingx@gmail.com, for the near term. Scott On 2019-01-22 11:20 a.m., Victor Rodriguez wrote:
Thanks, Scott
Please also send the link of the script so we can send patches to imrpove it
Regards
On 1/22/19 9:32 AM, Scott Little wrote:
That raises an interesting subject. The script in question is a jenkins script. Part of a larger build job, which in turn is a part of a family of jobs that do various sub-tasks. The editing is through the jenkins web-gui, and that will not be made accessible to the public. I'm troubled that Jenkins doesn't seem to keep an edit history of 'config' changes out of the box, and I've yet to spot a plugin that adds this feature.
I had this kind of issue in a previous job, we ended up having a jenkins specific git repo that managed the jenkins related scripts and had very basic code in the Jenkins Web-GUI. The challenge with that was how and when the jobs got triggered, if using CI based on repo change. So I will ask, on what conditions do you trigger builds on the Jenkins? Sau!
I've been pondering making the jenkins home directory one big git, with a lot of excludes for all the build history, logs, workspaces and such. Has anyone solved this? A git could readily be published.
In the mean time, the script content can be inferred from the various build logs. A successful build would be more informative. e.g. http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060...
<http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060000Z/logs/> Accepting feedback/revisions would be another matter entirely. We'll probably stick with e-mail to myself, and build.starlingx@gmail.com, for the near term.
Scott
On 2019-01-22 11:20 a.m., Victor Rodriguez wrote:
Thanks, Scott
Please also send the link of the script so we can send patches to imrpove it
Regards
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Hello Scott, Why don’t you put your Jenkins jobs on a git repository? This can be done by issuing a GET method to the address <JENKINS_URL>/job/<JOB_NAME>/config.xml. The GET method will bring you back an xml file that represents the configuration of the job, including any scripts contained inside. To issue this GET method you may use your USER and PASSWORD or if you have an API_TOKEN you can use it instead of your password. This is an example on how this can be done. $ curl https://somejenkinsserver.com/job/some_job/config.xml --user ${USER}:${API_TOKEN} It is also possible to modify jobs by issuing a new XML file on a POST method, in case you want to automate changes based on your git repo. I also happen to have a script that backups and restore Jenkins Jobs configs, here’s a github gist where you can see it: https://gist.github.com/gaponcec/8f43635707849feae8555fd4d2572755 From: Scott Little <scott.little@windriver.com> Date: Tuesday, January 22, 2019 at 11:35 AM To: Victor Rodriguez <vm.rod25@gmail.com> Cc: "starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io> Subject: Re: [Starlingx-discuss] [build-report] STX_build_stein_master - Build # 23 - Failure! That raises an interesting subject. The script in question is a jenkins script. Part of a larger build job, which in turn is a part of a family of jobs that do various sub-tasks. The editing is through the jenkins web-gui, and that will not be made accessible to the public. I'm troubled that Jenkins doesn't seem to keep an edit history of 'config' changes out of the box, and I've yet to spot a plugin that adds this feature. I've been pondering making the jenkins home directory one big git, with a lot of excludes for all the build history, logs, workspaces and such. Has anyone solved this? A git could readily be published. In the mean time, the script content can be inferred from the various build logs. A successful build would be more informative. e.g. http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060... <http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060000Z/logs/> Accepting feedback/revisions would be another matter entirely. We'll probably stick with e-mail to myself, and build.starlingx@gmail.com<mailto:build.starlingx@gmail.com>, for the near term. Scott On 2019-01-22 11:20 a.m., Victor Rodriguez wrote: Thanks, Scott Please also send the link of the script so we can send patches to imrpove it Regards
On Tue, Jan 22, 2019 at 11:58 AM Ponce Castaneda, Guillermo A <guillermo.a.ponce.castaneda@intel.com> wrote:
Hello Scott,
Why don’t you put your Jenkins jobs on a git repository?
This can be done by issuing a GET method to the address <JENKINS_URL>/job/<JOB_NAME>/config.xml. The GET method will bring you back an xml file that represents the configuration of the job, including any scripts contained inside.
To issue this GET method you may use your USER and PASSWORD or if you have an API_TOKEN you can use it instead of your password.
This is an example on how this can be done.
$ curl https://somejenkinsserver.com/job/some_job/config.xml --user ${USER}:${API_TOKEN}
It is also possible to modify jobs by issuing a new XML file on a POST method, in case you want to automate changes based on your git repo.
I also happen to have a script that backups and restore Jenkins Jobs configs, here’s a github gist where you can see it:
https://gist.github.com/gaponcec/8f43635707849feae8555fd4d2572755
Sounds like a great way we all can collaborate, to improve the quality of the tools/CI-CD we have Scott, what do you thing?
From: Scott Little <scott.little@windriver.com> Date: Tuesday, January 22, 2019 at 11:35 AM To: Victor Rodriguez <vm.rod25@gmail.com> Cc: "starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io> Subject: Re: [Starlingx-discuss] [build-report] STX_build_stein_master - Build # 23 - Failure!
That raises an interesting subject. The script in question is a jenkins script. Part of a larger build job, which in turn is a part of a family of jobs that do various sub-tasks. The editing is through the jenkins web-gui, and that will not be made accessible to the public. I'm troubled that Jenkins doesn't seem to keep an edit history of 'config' changes out of the box, and I've yet to spot a plugin that adds this feature.
I've been pondering making the jenkins home directory one big git, with a lot of excludes for all the build history, logs, workspaces and such. Has anyone solved this? A git could readily be published.
In the mean time, the script content can be inferred from the various build logs. A successful build would be more informative. e.g. http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/20190121T060...
Accepting feedback/revisions would be another matter entirely. We'll probably stick with e-mail to myself, and build.starlingx@gmail.com, for the near term.
Scott
On 2019-01-22 11:20 a.m., Victor Rodriguez wrote:
Thanks, Scott
Please also send the link of the script so we can send patches to imrpove it
Regards
participants (5)
-
build.starlingx@gmail.com
-
Ponce Castaneda, Guillermo A
-
Saul Wold
-
Scott Little
-
Victor Rodriguez