Programmatically searching the artifacts from multiple jobs

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Programmatically searching the artifacts from multiple jobs

Tony C
Hi,

I've been using Jenkins at work, for just over a year. I"m not the main architect of our groovy infrastructure. I'm just a user
who has several jobs which run each night.

Each of those jobs saves a handful of artifacts (log files) from that job.

I usually go into each job and look at a specific file (common to each job), for specific text that would indicate the job had a problem.
Since there are so many jobs being run, this takes quite a bit of time. Every day.

I would like to be able to search all of the jobs which ran on a certain date and scan the artifacts for specific text.
I would probably do this outside of Jenkins, by writing a script to scan the artifact files.

However, I don't know how to gain access to those jobs programmatically, let alone scanning the artifacts of each of those jobs.

I've used the Python-Jenkins library 

but it doesn't have the ability to do what I want- scanning the artifacts of several builds (or a specific build).

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Matthew Perrett
If you had access to the Jenkins server you could copy the files locally via scp or similar and run your script. You could also configure your job to save them somewhere in the file system with a date stamp in the name to allow you to search historically results.

You could also set up a downstream job that gets triggered on completion and checks the logs for errors, which could be configured to notify you via slack/email etc if there were any issues.

On Sun, Aug 11, 2019 at 3:55 PM Tony C <[hidden email]> wrote:
Hi,

I've been using Jenkins at work, for just over a year. I"m not the main architect of our groovy infrastructure. I'm just a user
who has several jobs which run each night.

Each of those jobs saves a handful of artifacts (log files) from that job.

I usually go into each job and look at a specific file (common to each job), for specific text that would indicate the job had a problem.
Since there are so many jobs being run, this takes quite a bit of time. Every day.

I would like to be able to search all of the jobs which ran on a certain date and scan the artifacts for specific text.
I would probably do this outside of Jenkins, by writing a script to scan the artifact files.

However, I don't know how to gain access to those jobs programmatically, let alone scanning the artifacts of each of those jobs.

I've used the Python-Jenkins library 

but it doesn't have the ability to do what I want- scanning the artifacts of several builds (or a specific build).

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA6n2-5iFmvfa%3D6s9v43_tQxSwMy6Gv2RuUOZn96%3DR67%2B279xQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

niristotle okram
In reply to this post by Tony C
Short answer, you need something like splunk or elastic search to parse the logs and check for specific strings. 

On Sun, Aug 11, 2019 at 5:55 PM Tony C <[hidden email]> wrote:
Hi,

I've been using Jenkins at work, for just over a year. I"m not the main architect of our groovy infrastructure. I'm just a user
who has several jobs which run each night.

Each of those jobs saves a handful of artifacts (log files) from that job.

I usually go into each job and look at a specific file (common to each job), for specific text that would indicate the job had a problem.
Since there are so many jobs being run, this takes quite a bit of time. Every day.

I would like to be able to search all of the jobs which ran on a certain date and scan the artifacts for specific text.
I would probably do this outside of Jenkins, by writing a script to scan the artifact files.

However, I don't know how to gain access to those jobs programmatically, let alone scanning the artifacts of each of those jobs.

I've used the Python-Jenkins library 

but it doesn't have the ability to do what I want- scanning the artifacts of several builds (or a specific build).

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com.
--
Sent from mobile device, excuse typos if any.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gvr8HLsYMUsZ7yMLi7_r_Kayj%3D8Ssx6ETwKNfbRMnDZg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Björn Pedersen
In reply to this post by Tony C
Hi,

I think the best solution would be to use warnings-ng  and set up  suitable custom parser (I assume that none of the many available parsers fit your use-case). Possibly in combination with the Build Failure Analyzer plugin your jobs will show the correct status and where the errors happed.

Björn

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
Thanks

On Sunday, August 11, 2019 at 9:49:38 PM UTC-7, Björn Pedersen wrote:
Hi,

I think the best solution would be to use warnings-ng  and set up  suitable custom parser (I assume that none of the many available parsers fit your use-case). Possibly in combination with the Build Failure Analyzer plugin your jobs will show the correct status and where the errors happed.

Björn

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/49f221c5-51a7-4086-ba76-b3e8667f81ca%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
In reply to this post by niristotle okram

Thanks

On Sunday, August 11, 2019 at 8:47:27 PM UTC-7, ok999 wrote:
Short answer, you need something like splunk or elastic search to parse the logs and check for specific strings. 

On Sun, Aug 11, 2019 at 5:55 PM Tony C <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ut0lkOomGAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">capp...@...> wrote:
Hi,

I've been using Jenkins at work, for just over a year. I"m not the main architect of our groovy infrastructure. I'm just a user
who has several jobs which run each night.

Each of those jobs saves a handful of artifacts (log files) from that job.

I usually go into each job and look at a specific file (common to each job), for specific text that would indicate the job had a problem.
Since there are so many jobs being run, this takes quite a bit of time. Every day.

I would like to be able to search all of the jobs which ran on a certain date and scan the artifacts for specific text.
I would probably do this outside of Jenkins, by writing a script to scan the artifact files.

However, I don't know how to gain access to those jobs programmatically, let alone scanning the artifacts of each of those jobs.

I've used the Python-Jenkins library 
<a href="https://python-jenkins.readthedocs.io/en/latest/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpython-jenkins.readthedocs.io%2Fen%2Flatest%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESafAnO9HA6FPfLRXJK85eeEoRwg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpython-jenkins.readthedocs.io%2Fen%2Flatest%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESafAnO9HA6FPfLRXJK85eeEoRwg&#39;;return true;">https://python-jenkins.readthedocs.io/en/latest/

but it doesn't have the ability to do what I want- scanning the artifacts of several builds (or a specific build).

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ut0lkOomGAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com.
--
Sent from mobile device, excuse typos if any.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2e2f6b74-a648-43fb-a28f-a322eec7e8d9%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Ulli Hafner
In reply to this post by Björn Pedersen
Or you can use the https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin 
It provides already a way to grep files for a pattern and set the build status accordingly.

Am 12.08.2019 um 06:49 schrieb 'Björn Pedersen' via Jenkins Users <[hidden email]>:

Hi,

I think the best solution would be to use warnings-ng  and set up  suitable custom parser (I assume that none of the many available parsers fit your use-case). Possibly in combination with the Build Failure Analyzer plugin your jobs will show the correct status and where the errors happed.

Björn

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3F83F7A5-5C3D-4786-8770-83B26B85DEC8%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
Thanks, I may have to resort to that.

I was hoping to find a way to get access to the artifact files,
outside of Jenkins though.
Then I could write my own script to run independently of Jenkins

On Mon, Aug 12, 2019 at 2:30 PM Ullrich Hafner <[hidden email]> wrote:

>
> Or you can use the https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin
> It provides already a way to grep files for a pattern and set the build status accordingly.
>
> Am 12.08.2019 um 06:49 schrieb 'Björn Pedersen' via Jenkins Users <[hidden email]>:
>
> Hi,
>
> I think the best solution would be to use warnings-ng  and set up  suitable custom parser (I assume that none of the many available parsers fit your use-case). Possibly in combination with the Build Failure Analyzer plugin your jobs will show the correct status and where the errors happed.
>
> Björn
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com.
>
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3F83F7A5-5C3D-4786-8770-83B26B85DEC8%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CABRXM4meUJChsUmtsKDqgzw0Ovo2gfj6mqCObiVq9aOOo%3Dzd5g%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
In reply to this post by Matthew Perrett
>>If you had access to the Jenkins server you could copy t
I do have access to the server

I'd write a script to go parse the artifact logs, if I only knew where they were.
I don't know if that requires root access or not, I dont have root access.

On Monday, August 12, 2019 at 9:23:56 PM UTC-7, Matthew Perrett wrote:
If you had access to the Jenkins server you could copy the files locally via scp or similar and run your script. You could also configure your job to save them somewhere in the file system with a date stamp in the name to allow you to search historically results.

You could also set up a downstream job that gets triggered on completion and checks the logs for errors, which could be configured to notify you via slack/email etc if there were any issues.

On Sun, Aug 11, 2019 at 3:55 PM Tony C <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="pU8r6Hx3GAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">capp...@...> wrote:
Hi,

I've been using Jenkins at work, for just over a year. I"m not the main architect of our groovy infrastructure. I'm just a user
who has several jobs which run each night.

Each of those jobs saves a handful of artifacts (log files) from that job.

I usually go into each job and look at a specific file (common to each job), for specific text that would indicate the job had a problem.
Since there are so many jobs being run, this takes quite a bit of time. Every day.

I would like to be able to search all of the jobs which ran on a certain date and scan the artifacts for specific text.
I would probably do this outside of Jenkins, by writing a script to scan the artifact files.

However, I don't know how to gain access to those jobs programmatically, let alone scanning the artifacts of each of those jobs.

I've used the Python-Jenkins library 
<a href="https://python-jenkins.readthedocs.io/en/latest/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpython-jenkins.readthedocs.io%2Fen%2Flatest%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESafAnO9HA6FPfLRXJK85eeEoRwg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpython-jenkins.readthedocs.io%2Fen%2Flatest%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESafAnO9HA6FPfLRXJK85eeEoRwg&#39;;return true;">https://python-jenkins.readthedocs.io/en/latest/

but it doesn't have the ability to do what I want- scanning the artifacts of several builds (or a specific build).

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="pU8r6Hx3GAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/beec7ce8-ef23-42fc-9893-26d8036ed7f8%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
In reply to this post by Ulli Hafner
If I can get the admin to install this, I'll give it a try

thanks

On Monday, August 12, 2019 at 2:30:32 PM UTC-7, Ullrich Hafner wrote:
Or you can use the <a href="https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FText-finder%2BPlugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGKa9xmjVTuJI3N89QX9fx5cWlaA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FText-finder%2BPlugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGKa9xmjVTuJI3N89QX9fx5cWlaA&#39;;return true;">https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin 
It provides already a way to grep files for a pattern and set the build status accordingly.

Am 12.08.2019 um 06:49 schrieb 'Björn Pedersen' via Jenkins Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="jqTwp-1gGAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>:

Hi,

I think the best solution would be to use warnings-ng  and set up  suitable custom parser (I assume that none of the many available parsers fit your use-case). Possibly in combination with the Build Failure Analyzer plugin your jobs will show the correct status and where the errors happed.

Björn

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jqTwp-1gGAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/ccdab323-3894-4635-a06f-5f7a74c3b3ec%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dc389d52-9e91-450f-916d-c6f9dbfea5be%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Martin d'Anjou
Could the run selector plugin help?
https://github.com/jenkinsci/run-selector-plugin

Martin

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
Perhaps. I'll have to give it a try to see what its limitations are.

When you have 5-10 artifacts per job, it takes a lot of time saving
them, so they can be attached to a Jira ticket.
Jenkins doesn't provide a way to save those files. You need to view
each one, copy it's contents into an editor, then save those files,
manually.

thanks

On Sun, Aug 18, 2019 at 10:49 AM Martin d'Anjou
<[hidden email]> wrote:

>
> Could the run selector plugin help?
> https://github.com/jenkinsci/run-selector-plugin
>
> Martin
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CABRXM4ncTCyAEnzE7KZjcqvFbv0e2AGRe_8aij2RRddxQtXqiA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Martin d'Anjou
You can get the artifacts from Jenkins using curl:
curl -X GET "http://localhost:8080/job/p1/2/artifact/t2.txt" -o t2.txt

You can also get all the artifacts:
curl -X GET "http://localhost:8080/job/p1/2/artifact/*zip*/archive.zip" -o a.zip

For more see:
https://stackoverflow.com/questions/35920756/is-there-any-jenkins-api-to-get-artifacts-name-and-download-it

Martin

On Sunday, August 18, 2019 at 2:40:37 PM UTC-4, Tony Cappellini wrote:
Perhaps. I'll have to give it a try to see what its limitations are.

When you have 5-10 artifacts per job, it takes a lot of time saving
them, so they can be attached to a Jira ticket.
Jenkins doesn't provide a way to save those files. You need to view
each one, copy it's contents into an editor, then save those files,
manually.

thanks

On Sun, Aug 18, 2019 at 10:49 AM Martin d'Anjou
<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="v0Ifa6cpDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">martin....@...> wrote:

>
> Could the run selector plugin help?
> <a href="https://github.com/jenkinsci/run-selector-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Frun-selector-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEg4kRADaUnQKSN_B4ChlwEFJ9zvQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Frun-selector-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEg4kRADaUnQKSN_B4ChlwEFJ9zvQ&#39;;return true;">https://github.com/jenkinsci/run-selector-plugin
>
> Martin
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="v0Ifa6cpDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/030c4641-e194-4562-aae0-ba7b2c6bc430%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically searching the artifacts from multiple jobs

Tony C
Thanks Martin. That looks like the most programmatic solution of all.

On Mon, Aug 19, 2019 at 3:58 PM Martin d'Anjou <[hidden email]> wrote:
You can get the artifacts from Jenkins using curl:

You can also get all the artifacts:

For more see:

Martin

On Sunday, August 18, 2019 at 2:40:37 PM UTC-4, Tony Cappellini wrote:
Perhaps. I'll have to give it a try to see what its limitations are.

When you have 5-10 artifacts per job, it takes a lot of time saving
them, so they can be attached to a Jira ticket.
Jenkins doesn't provide a way to save those files. You need to view
each one, copy it's contents into an editor, then save those files,
manually.

thanks

On Sun, Aug 18, 2019 at 10:49 AM Martin d'Anjou
<[hidden email]> wrote:

>
> Could the run selector plugin help?
> https://github.com/jenkinsci/run-selector-plugin
>
> Martin
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/211067ec-a99a-4251-990f-a4e66e8b9d58%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/nNwRWXHOs5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/030c4641-e194-4562-aae0-ba7b2c6bc430%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CABRXM4m0013rZ26baQu0-dSicETZkJYDzOPoUBs8p9d1-77-RA%40mail.gmail.com.