Jenkins Customization

2019-08-12 Thread Ashwajit Bhoutkar
Hi,

Is there a way to change the default content of jenkins, i.e I wish to 
change the names in "Side-Panel", e.g instead of "New Item" I wish to 
rename it to just "New", similarly instead of "People" I wish to rename it 
to "Users" etc.

I tried few things with CSS text replacement and JavaScript with JQuery 
however it doesnt seems to be working, can some one please provide some 
support related to this.


Thank You,

Kind Regards,
Ashwajit

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1f911389-ee5b-4e98-ac8d-6377ba44d6ad%40googlegroups.com.


Jenkins kills process created by Maven test while the tests still runs

2019-08-12 Thread Marc Schlegel
Hello everyone. 

I've asked this already on the Freenode-IRC, but on second thought this is 
a better place.

During a Maven test execution my JVM needs to spawn a external process 
using Javas ProcessBuilder-API. At the end of the test, the process is 
killed. This works in JUnit standalone, Maven surefire, but not within a 
Jenkins-Pipelines Maven-step.
I see that the process is started (process console output), but it gets 
killed within 1 or 2 seconds by something else than my test. The test 
stores the pid of the started process and uses this pid to get a handle to 
kill it at the end, but when the test is cleaning up, no process matches 
the pid (hence I know that something else must have killed it).

As far as I know, the ProcessTreeKiller in Jenkins is responsible for 
killing processes spawned during job-execution. I thought that the 
ProcessTreeKiller is only running at the end of each Job. Nevertheless I 
tried setting JENKINS_NODE_COOKIE=dontkill as well as BUILD_ID=dontkill 
without avail.
All this happens within a single step:

withMaven(maven: 'maven361', jdk: 'openjdk11') {
  sh "mvn -p integration-test verify"
}

Is there anything in Jenkins which prevents spawning processes from a JVM 
(Maven)? 


For the interested some background: I need to connect to a Kubernetes Pod 
via TCP which is not possible via Ingress. Hence I need to call "kubectl 
port-forward" and extract the dynamic allocated port from the process. 
Thats why my test is in charge of the external process (otherwise I could 
open it from the pipeline).

best regards
Marc

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c896713c-86b2-45e5-b7cd-2c16302f6c37%40googlegroups.com.


Re: Programmatically searching the artifacts from multiple jobs

2019-08-12 Thread 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  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
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Re: Programmatically searching the artifacts from multiple jobs

2019-08-12 Thread Tony Cappellini
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  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 
> :
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> 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 
> jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CABRXM4meUJChsUmtsKDqgzw0Ovo2gfj6mqCObiVq9aOOo%3Dzd5g%40mail.gmail.com.


Re: Programmatically searching the artifacts from multiple jobs

2019-08-12 Thread Ullrich Hafner
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 
> :
> 
> 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 jenkinsci-users+unsubscr...@googlegroups.com 
> .
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3F83F7A5-5C3D-4786-8770-83B26B85DEC8%40gmail.com.


Jenkins+Autoit combination with Selenium not working

2019-08-12 Thread Sanjay Kumar
Hi All,

It is known the issue but I didn't the answer


I am facing an issue when using Jenkins+autoit combination with Selenium. 
Jenkins is configured in different window machine over there it is opening 
browser and running my test cases fine. 

But *for file upload(with AutoIt)* test cases are failing because file not 
getting uploaded. 

Do we need to configure anything for my Jenkins node? or any other way?

I hope there is no issue in my AutoIt code as it is working fine in my 
local machine.

Thanks in advance.
Sanjay

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a0c5c1e6-fe61-427b-bb59-01e9696f%40googlegroups.com.


Re: Programmatically searching the artifacts from multiple jobs

2019-08-12 Thread 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/49f221c5-51a7-4086-ba76-b3e8667f81ca%40googlegroups.com.


Re: Programmatically searching the artifacts from multiple jobs

2019-08-12 Thread Tony C

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 > 
> 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 
>> 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 jenkins...@googlegroups.com .
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2e2f6b74-a648-43fb-a28f-a322eec7e8d9%40googlegroups.com.