How to tag a job for environmental variables for Search

2020-07-08 Thread Kari Atari
Is it possible to tag a job for what server they deploy to, as well as 
codebase (java, .net, etc) ?

I'm looking for a way to filter the search more efficiently, like in 
DataDog, search by env:prod, get list of all prod jobs, search by language: 
java, get a list of all java apps; or app name/project name, app:foo -- 
along those lines. 

Is it possible or a handy plugin that would help with this?

-- 
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/0d1fb58f-c44a-43e4-8ed4-84ca11800a01o%40googlegroups.com.


Re: Icons loading issue in Jenkins behind Netscaler.

2020-07-08 Thread Mark Waite
I attempted to post this through the Google Groups web interface but it
seems to have failed.  My apologies if it later arrives as a duplicate
reply.

Configuring a reverse proxy can be complicated.  Icons that fail to load is
one of the indications of the complications.

One of the Jenkins Hackfest contributors combined efforts with a reverse
proxy expert and submitted pull request 3386
 to describe various
scenarios in reverse proxy configuration.  It would be much appreciated if
you would review the current proposal

to see if it helps in your case.  If it helps, that is great.  If it does
not help, please add comments to the pull request based on what you learn
during your investigation.

Thanks,
Mark Waite

On Wed, Jul 8, 2020 at 6:59 AM Vishnu V Potti 
wrote:

> Hi All,
>
>  I have a Jenkins accessed via Netscaler endpoint.
> https://company.internal.com/jenkins.
>  Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins 
> and
> everything was working.It still works fine when accessed like that.
>
> At Netscaler side, we set "x-forwarded-proto" = https header and http to
> https redirection. Functionality wise works ok. Now I am seeing issues
> where the login screen logo wont load and some plugin icons wont load.
>
> *Images below.*
>
> https://imgur.com/sRPjD4D
>
>
> I debugged as seen below. I navigated to the url which was formed. The
> image doesn't exist in that location. But if I access via the host then it
> can be accessed. The two urls are below.
>
> `
> https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
> 
>  *Doesnt work*
> `
> http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
> 
>  Works
>
>
> https://imgur.com/iMnJygh
>
>
> https://imgur.com/vVCqGUG
>
> Any idea what's going wrong and how can I resolve these issues? Although
> these doesnt impact functionality I would like to fix them.
>
> *  What i did so far w.r.t debugging.*
> 1) Referenced this link
> https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy
> and made some modifications. Nothing worked.
> 2) Installed Simple Theme Plugin and could resolve jenkins logo issue in
> the inner pages ,but not in the login page.
>
>
> Thanks in advance.
> Vish
>
> --
> 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/932e71df-edac-4cb4-bac4-617b921562d4o%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/CAO49JtGsWkkhuRzXrSwSHfWvFRp6ybcF_Q4yDFhcAT%3DjtKAeZA%40mail.gmail.com.


Icons loading issue in Jenkins behind Netscaler.

2020-07-08 Thread Vishnu V Potti
Hi All,

 I have a Jenkins accessed via Netscaler endpoint. 
https://company.internal.com/jenkins.
 Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins 
and 
everything was working.It still works fine when accessed like that. 
 
At Netscaler side, we set "x-forwarded-proto" = https header and http to 
https redirection. Functionality wise works ok. Now I am seeing issues 
where the login screen logo wont load and some plugin icons wont load.  

*Images below.*

https://imgur.com/sRPjD4D


I debugged as seen below. I navigated to the url which was formed. The 
image doesn't exist in that location. But if I access via the host then it 
can be accessed. The two urls are below.

`
https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
 

 *Doesnt work*
`
http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
 

 Works


https://imgur.com/iMnJygh


https://imgur.com/vVCqGUG

Any idea what's going wrong and how can I resolve these issues? Although 
these doesnt impact functionality I would like to fix them.

*  What i did so far w.r.t debugging.*
1) Referenced this link 
https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy  
and made some modifications. Nothing worked.
2) Installed Simple Theme Plugin and could resolve jenkins logo issue in 
the inner pages ,but not in the login page.


Thanks in advance.
Vish

-- 
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/932e71df-edac-4cb4-bac4-617b921562d4o%40googlegroups.com.


Re: Icons loading issue in Jenkins

2020-07-08 Thread Mark Waite
This would be a great reason to review a related pull request to the 
Jenkins documentation.  Refer to the "Reverse Proxy Configuration with 
Jenkins 
"
 
page that is the focus of pull request 3386 
.  If it helps you 
diagnose the issue, that is great.  If it doesn't help you diagnose the 
issue, it would be great if you could provide notes that describe how you 
diagnosed and resolved the issue.

Thanks,
Mark Waite

On Wednesday, July 8, 2020 at 5:11:24 AM UTC-6 vishnu...@gmail.com wrote:

>  Hi All,
>
> I have a Jenkins accessed via Netscaler endpoint. 
> https://company.internal.com/jenkins.
>  Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins 
> and 
> everything was working.It stil lworks fine when accessed like that. 
>  
> At Netscaler side, we set "x-forwarded-proto" = https header and http to 
> https redirection. Functionality wise works ok. Now I am seeing issues 
> where the login screen logo wont load and some plugin icons wont load.  
>
>
> *Images below.*
>
>
> [image: image.png]
>
> I debugged as seen below. I navigated to the url which was formed. The 
> image doesn't exist in that location. But if I access via the host then it 
> can be accessed. The two urls are below.
>
> `
> https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
>  
> 
>  *Doesnt work*
> `
> http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
>  
> 
>  Works
>
>
> [image: image.png]
>
>
>
>
> Any idea what's wrong and how can I resolve these issues? Although these 
> doesnt impact functionality I would like to fix them.
>
> [image: image.png]
>
> *  What i did so far w.r.t debugging.*
> 1) Referenced this link 
> https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy  
> and made some modifications. Nothing worked.
> 2) Installed Simple Theme Plugin and could resolve jenkins logo issue in 
> the inner pages ,but not in the login page.
>
>
> Thanks in advance.
> Vish
>

-- 
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/b125a706-1043-4631-838d-141fdbd9e858n%40googlegroups.com.


Icons loading issue in Jenkins

2020-07-08 Thread Vishnu V Potti
 Hi All,

I have a Jenkins accessed via Netscaler endpoint. 
https://company.internal.com/jenkins.
 Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins 
and 
everything was working.It stil lworks fine when accessed like that. 
 
At Netscaler side, we set "x-forwarded-proto" = https header and http to 
https redirection. Functionality wise works ok. Now I am seeing issues 
where the login screen logo wont load and some plugin icons wont load.  


*Images below.*


[image: image.png]

I debugged as seen below. I navigated to the url which was formed. The 
image doesn't exist in that location. But if I access via the host then it 
can be accessed. The two urls are below.

`
https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
 

 *Doesnt work*
`
http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
 

 Works


[image: image.png]




Any idea what's wrong and how can I resolve these issues? Although these 
doesnt impact functionality I would like to fix them.

[image: image.png]

*  What i did so far w.r.t debugging.*
1) Referenced this link 
https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy  
and made some modifications. Nothing worked.
2) Installed Simple Theme Plugin and could resolve jenkins logo issue in 
the inner pages ,but not in the login page.


Thanks in advance.
Vish

-- 
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/b21c664b-e547-4db1-ae7f-5a1536e192c7o%40googlegroups.com.


Some icons wont load in Jenkins

2020-07-08 Thread Vishnu V Potti
Hi All,

 I have a Jenkins accessed via Netscaler endpoint. 
https://company.internal.com/jenkins.
 Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins 
and 
everything was working.It stil lworks fine when accessed like that. 
 
At Netscaler side, we set "x-forwarded-proto" = https header and http to 
https redirection. Functionality wise works ok. Now I am seeing issues 
where the login screen logo wont load and some plugin icons wont load.  

*Images below.*


[image: image.png]

I debugged as seen below. I navigated to the url which was formed. The 
image doesn't exist in that location. But if I access via the host then it 
can be accessed. The two urls are below.

`
https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
 

 *Doesnt work*
`
http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png`
 

 Works

[image: image.png]



[image: image.png]

Any idea what's going wrong and how can I resolve these issues? Although 
these doesnt impact functionality I would like to fix them.

*  What i did so far w.r.t debugging.*
1) Referenced this link 
https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy  
and made some modifications. Nothing worked.
2) Installed Simple Theme Plugin and could resolve jenkins logo issue in 
the inner pages ,but not in the login page.


Thanks in advance.
Vish

-- 
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/15396cd0-f7f5-4cc8-b036-54150bd7296co%40googlegroups.com.


Re: Reasons for job termination

2020-07-08 Thread fcenedese
I just wanted to add my findings in case somebody else is looking for a 
solution to a similar problem.

It turned out that we have a second jenkins job running on the same 
machine, mostly unrelated to
the first job that was getting killed. The second job wants to start a 
process which can only work
if the process isn't already running. Therefore it is looking for processes 
with a certain name and kills
them if they exist. This pattern now unfortunately also matched a process 
of the first job and killed
it, assuming it was his own still running process. And as this didn't have 
anything to do with jenkins
it also didn't show up in the logs.

So it wasn't a jenkins error or resource problem but simply human error.

Thanks for any help and sorry for the noise.

-- 
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/f56d99d5-55d5-4178-b27b-da9cafa52bdfo%40googlegroups.com.