looking for "News banner" plugin

2020-06-16 Thread 'monger_39' via Jenkins Users
Hi all, I am looking for a plugin that would allow me to add a simple 'News 
banner' on the Jenkins home page.This is to announce upcoming maintenance, new 
items or other.
Not much fancy stuff is needed: all I would want is a piece of text with minor 
formatting.
After searching, the only plugin that I could find is the 'Page Markup', but 
afaict that is meant to add a more permanent 'branding' banner. That is not 
what I need.
Any advise ?thx, M

-- 
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/971370871.1203030.1592290808271%40mail.yahoo.com.


NoSuchMethodError in BFA-plugin

2020-06-16 Thread Torsten Reinhard
Hi, 

I´m running Jenkins 2.204.5 and the Build-failure-analyzer plugin 1.26.0

When hitting 
https://mycompany/jenkins/failure-cause-management/detailedgraphs I see 
some empty graphs (missing img) which probably is caused by exceptions like 
the below:

Error while serving https://mycompany/jenkins/failure-cause-management/graph/png
java.lang.NoSuchMethodError: 
org.jfree.data.time.TimeTableXYDataset.add(Lorg/jfree/data/time/TimePeriod;DLjava/lang/String;)V
at 
com.sonyericsson.jenkins.plugins.bfa.graphs.TimeSeriesUnkownFailuresChart.createDataset(TimeSeriesUnkownFailuresChart.java:106)
at 
com.sonyericsson.jenkins.plugins.bfa.graphs.TimeSeriesUnkownFailuresChart.createGraph(TimeSeriesUnkownFailuresChart.java:73)
at hudson.util.Graph.render(Graph.java:93)
at hudson.util.Graph.doPng(Graph.java:120)
at 
java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
Caused: java.lang.reflect.InvocationTargetException
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:249)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at org.jenkinsci.plugins.RefreshFilter.doFilter(RefreshFilter.java:96)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at 
jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
at 
net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
at 
org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at 
jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:105)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
 

Re: Help Jenkins with TestComplete

2020-06-16 Thread 'monger_39' via Jenkins Users
 in your log it shows:
   Building in workspace C:\Users\latran\.jenkins\ workspace\Test
Are you actually working with a workspace that has a space in the name ??
Using that could, depending how variables are used/interpreted/passed cause all 
kinds of strange issues.
Although in the rest of you log, some parts seem to be quoted I wonder if this 
is sufficient. Better to get rid of the space,and try again.gr,
On Sunday, June 14, 2020, 09:56:38 AM GMT+2, Geoffroy J 
 wrote:  
 
 Helloseems you are running under Windows.Does Jenkins run as a service? Have 
you enable the option "Allow service to interact with desktop" on the 
service?Regards
On Saturday, 13 June 2020 15:33:20 UTC+2, Sanjib Basak wrote:
Do you have any resolution for this problem i am also facing same issue.

On Friday, 9 September 2016 13:29:39 UTC+5:30, lan tranthai wrote:
I  have problem while run Jenkins to call TestComplete .
"Started by user TestAdmin
Building in workspace C:\Users\latran\.jenkins\ workspace\Test

[TestComplete] The test execution started (TestWebApp/WebApp1/ 
KeyWordTests|Test1).
[TestComplete] Found TestComplete/TestExecute installations:
Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files 
(x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files 
(x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
[TestComplete] Launching the test runner.
$ '"C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestCompleteService11. 
exe"' //LogonAndExecute //lDomain: "" //lName: "TestAdmin" //lPassword: 
 //lTimeout: "-1" //lUseActiveSession: "true" //lCommandLine: 
'""C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe" 
"C:\Users\latran\Documents\ TestComplete 11 Projects\TestWebApp\ 
TestWebApp.pjs" /run /SilentMode /ForceConversion /ns /exit 
/ExportLog:C:\Users\latran\. jenkins\workspace\Test\ 5067406.tclogx 
/ExportLog:C:\Users\latran\. jenkins\workspace\Test\ 5067406.htmlx 
/ErrorLog:C:\Users\latran\. jenkins\workspace\Test\ 5067406.txt 
/project:WebApp1 /test:KeyWordTests|Test1"'
[TestComplete] Test runner exit code: -10 (Unable to create a user session).
[TestComplete] [WARNING] Unable to find the log file "5067406.tclogx".
[TestComplete] [WARNING] Unable to find the log file "5067406.htmlx".
[TestComplete] [WARNING] Errors occurred during the test execution.
[TestComplete] Marking the build as UNSTABLE.
[TestComplete] [WARNING] Unable to publish test results (xml data is empty).
[TestComplete] The test execution finished (TestWebApp/WebApp1/ 
KeyWordTests|Test1).
Build step 'TestComplete Test' changed build result to UNSTABLE Finished: 
UNSTABLE
"





-- 
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/c33e1571-e5c5-442f-b756-3cbe31708d35o%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/416349395.1216434.1592292958479%40mail.yahoo.com.


Re: NoSuchMethodError in BFA-plugin

2020-06-16 Thread Ullrich Hafner
In my workspace 1.0.19 version of jfreechart is used. Seems that the plugin 
uses a method that is not there anymore because of an outdated library 
reference.
Please file a bug report for the plugin in Jira.

 

> Am 16.06.2020 um 09:14 schrieb Torsten Reinhard :
> 
> Hi, 
> 
> I´m running Jenkins 2.204.5 and the Build-failure-analyzer plugin 1.26.0
> 
> When hitting 
> https://mycompany/jenkins/failure-cause-management/detailedgraphs 
>  I see 
> some empty graphs (missing img) which probably is caused by exceptions like 
> the below:
> 
> Error while serving 
> https://mycompany/jenkins/failure-cause-management/graph/png
> java.lang.NoSuchMethodError: 
> org.jfree.data.time.TimeTableXYDataset.add(Lorg/jfree/data/time/TimePeriod;DLjava/lang/String;)V
> at 
> com.sonyericsson.jenkins.plugins.bfa.graphs.TimeSeriesUnkownFailuresChart.createDataset(TimeSeriesUnkownFailuresChart.java:106)
> at 
> com.sonyericsson.jenkins.plugins.bfa.graphs.TimeSeriesUnkownFailuresChart.createGraph(TimeSeriesUnkownFailuresChart.java:73)
> at hudson.util.Graph.render(Graph.java:93)
> at hudson.util.Graph.doPng(Graph.java:120)
> at 
> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
> at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
> Caused: java.lang.reflect.InvocationTargetException
> at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
> at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
> at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
> at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
> at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
> at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:249)
> at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
> at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
> at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
> at org.jenkinsci.plugins.RefreshFilter.doFilter(RefreshFilter.java:96)
> at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
> at 
> jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
> at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
> at 
> net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
> at 
> net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
> at 
> net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
> at 
> org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)
> at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
> at 
> jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
> at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
> at 
> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:105)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> at 
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:8

Re: Files sourced on pipeline shell step

2020-06-16 Thread 'Kamil Dzierżanowski' via Jenkins Users
It looks like the "sh" step uses the same shell session that the Jenkins 
agent does when connecting a node to master. Therefore, any default shell 
configuration is determined in node settings, and changing it, or any of 
the dot files, requires reconnecting the node to reload them.

I would say it is a best practice to use a Jenkins Shared Library and 
define a custom step, which will use the "sh" step to run a specified 
command in a new "bash" login session. That way you can ensure the proper 
dot files, NVM etc. are always sourced fresh.

On Monday, June 15, 2020 at 9:18:58 PM UTC+2, Martin Baillie wrote:
>
>  I'm experiencing a similar issue, did you find a solution?
>
> On Wednesday, 9 January 2019 09:19:25 UTC, Kamil Dzierżanowski wrote:
>>
>> Hello,
>>
>> I'm trying to determine, which (if any) files are sourced by the shell, 
>> in which commands specified in "sh" pipeline step are executed. I need to 
>> make sure the NVM (Node Version Manager) is sourced everytime this step is 
>> used.
>> I tried numerous dot-files for the user the Jenkins agent is using, as 
>> well as the /etc/profile, but none works. I'll be grateful for any hints or 
>> for pointing me to an existing answer (I failed to find any).
>>
>> Kamil
>>
>

-- 
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/53979b0c-41e1-43c1-a50b-450823380f45o%40googlegroups.com.


Re: NoSuchMethodError in BFA-plugin

2020-06-16 Thread Torsten Reinhard
Hi, 
I´ve created https://issues.jenkins-ci.org/browse/JENKINS-62690 - 
In 2.164.3 1.0.9 of jfreechart was used while it is now 1.0.19. 
There has been a change from String -> Comparable in the method signature 
as far as I remember.

Just switching the jenkins-core dependency results in some broken enforcer 
rules, that´s where I stopped investigating more.

Thx, Torsten

-- 
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/233023ac-967c-4e35-968c-abb910a8cbd9o%40googlegroups.com.


kubernetes plugin issue with workingDir set as /home/jenkins/agent

2020-06-16 Thread b Od


Hi,

One issue we noticed after we upgraded the Kubernetes Jenkins pluging to 
version 1.26, we see that our jnlp slave Jenkins pod no longer mounts 
/home/Jenkins any more as *read/write* and this is breaking all our jobs 
(it does mount /home/Jenkins/*agent* but our builds need to edit some files 
(.gradle files) that exist on /home/Jenkins as read/write. A workaround is 
to edit each Jenkinsfile and manually edit the workingDir but difficult as 
we have many jobs.

 

Can see  that version 1.26 of the plugin is supposed to have supported 
maintaining the legacy workingDir of "/home/jenkins" but isn’t working for 
us. https://github.com/jenkinsci/kubernetes-plugin/pull/713

 

Wondering if anyone else is having the same issue.

Thanks

Brian

-- 
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/7950e28f-1240-412f-9f94-3c7426b59d38o%40googlegroups.com.


ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

2020-06-16 Thread Jagadeesh YENNE


Hi All,


While I am running sonar-scanner job, I am getting below error, could someone 
suggest me how to proceed on it.


[MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash /tmp/jenkins1683394883835788984.sh
Running Sonar

> market-forecaster-frontend@0.0.0 sonar 
> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend
> sonar-scanner

/mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
 line 59: /usr/bin/java/bin/java: Not a directory
/mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
 line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! market-forecaster-frontend@0.0.0 sonar: `sonar-scanner`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the market-forecaster-frontend@0.0.0 sonar script.
npm ERR! This is probably not a problem with npm. There is likely additional 
logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! 
/mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE


Regards,
Jagadeesh

-- 
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/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com.


script pipeline with rabbitmq

2020-06-16 Thread Arturo Arenas
hello everybody !!

someone tried to do this?

node {
docker.image('rabbitmq:3').withRun('--rm --hostname test-rabbit --name 
test-rabbit -p 15672:15672') { c ->
docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
  sh 'rabbitmqctl list_users'
}
docker.image('fedora').inside("--link ${c.id}:db") {
sh 'ls'
}
}
}

also i tried to do this

pipeline {
agent { 
docker 'fedora' 
}
options {
buildDiscarder(logRotator(numToKeepStr: '1'))
}
stages {
stage('RabbitMQ') {
steps {
  script {
  docker.image('rabbitmq:3').withRun('--rm --hostname 
test-rabbit --name test-rabbit -p 15672:15672') { c ->
docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
sh 'rabbitmqctl list_users'
}
  }
  }
}
}
}
}


I'm having problems to perform my script

thanks in advance

-- 
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/15b91650-e515-4370-b23f-f2946ff12ff0o%40googlegroups.com.


Re: script pipeline with rabbitmq

2020-06-16 Thread Jan Monterrubio
What are you trying to accomplish here? It looks like setup some queues and
db as infrastructure for something else that depends on it?

On Tue, Jun 16, 2020 at 14:48 Arturo Arenas  wrote:

> hello everybody !!
>
> someone tried to do this?
>
> node {
> docker.image('rabbitmq:3').withRun('--rm --hostname test-rabbit
> --name test-rabbit -p 15672:15672') { c ->
> docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
>   sh 'rabbitmqctl list_users'
> }
> docker.image('fedora').inside("--link ${c.id}:db") {
> sh 'ls'
> }
> }
> }
>
> also i tried to do this
>
> pipeline {
> agent {
> docker 'fedora'
> }
> options {
> buildDiscarder(logRotator(numToKeepStr: '1'))
> }
> stages {
> stage('RabbitMQ') {
> steps {
>   script {
>   docker.image('rabbitmq:3').withRun('--rm --hostname
> test-rabbit --name test-rabbit -p 15672:15672') { c ->
> docker.image('rabbitmq:3').inside("--link ${c.id}:db")
> {
> sh 'rabbitmqctl list_users'
> }
>   }
>   }
> }
> }
> }
> }
>
>
> I'm having problems to perform my script
>
> thanks in advance
>
> --
> 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/15b91650-e515-4370-b23f-f2946ff12ff0o%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/CADgiF9%2BJsvPkLUjmX8WsFjY18LgiAYi-guu4bZLK%3Dt8_Rs-kwA%40mail.gmail.com.


Re: script pipeline with rabbitmq

2020-06-16 Thread Arturo Arenas

Hello Jan,

Yes, i want to perform some test with AMQP in mi code, therefore, i need 
running sidecars containers, but i get some issues with that 
implementation.  


El martes, 16 de junio de 2020, 18:36:51 (UTC-4), Jan Monterrubio escribió:
>
> What are you trying to accomplish here? It looks like setup some queues 
> and db as infrastructure for something else that depends on it?
>
> On Tue, Jun 16, 2020 at 14:48 Arturo Arenas  > wrote:
>
>> hello everybody !!
>>
>> someone tried to do this?
>>
>> node {
>> docker.image('rabbitmq:3').withRun('--rm --hostname test-rabbit 
>> --name test-rabbit -p 15672:15672') { c ->
>> docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
>>   sh 'rabbitmqctl list_users'
>> }
>> docker.image('fedora').inside("--link ${c.id}:db") {
>> sh 'ls'
>> }
>> }
>> }
>>
>> also i tried to do this
>>
>> pipeline {
>> agent { 
>> docker 'fedora' 
>> }
>> options {
>> buildDiscarder(logRotator(numToKeepStr: '1'))
>> }
>> stages {
>> stage('RabbitMQ') {
>> steps {
>>   script {
>>   docker.image('rabbitmq:3').withRun('--rm --hostname 
>> test-rabbit --name test-rabbit -p 15672:15672') { c ->
>> docker.image('rabbitmq:3').inside("--link ${c.id}:db"
>> ) {
>> sh 'rabbitmqctl list_users'
>> }
>>   }
>>   }
>> }
>> }
>> }
>> }
>>
>>
>> I'm having problems to perform my script
>>
>> thanks in advance
>>
>> -- 
>> 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/15b91650-e515-4370-b23f-f2946ff12ff0o%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/7b03eba5-6ae9-4961-9c0c-7cb6fb70b358o%40googlegroups.com.


how to obfuscate login page?

2020-06-16 Thread Harald Dunkel

Hi folks,

how can I obfuscate Jenkins' login page? I don't want everybody
to know that its a Jenkins prior to login.

IMHO its an unlucky design decision to run the user web interface
and the webhook interface on the same port number. I wouldn't have
to open the user web interface to the world outside, if not for the
webhooks coming from google cloud. Or did I miss something here?


Every helpful comment is highly appreciated

Harri

--
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/baa73c8c-49ea-7625-debe-6fa814e026af%40afaics.de.


remote call on the slave node fails while publishing cobertura coverage report

2020-06-16 Thread Karthik Bharadwaj
I see this below error while the build starts publishing cobertura coverage 
report.

The coverage results are present. And I delete the node, add again and I do 
not see this error for about next 2 to 3 days.
 the same error starts showing up again.  

This is happening on all the linux slave nodes. 


Jenkins version 2.121.2
jenkins and slave process are started using jdk1.8.0_121 
slaves are running rhel 6.10 


Any input or help much appreciated.

14:37:55 [Cobertura] Publishing Cobertura coverage report...
14:37:55 
14:37:56 FATAL: Unable to find coverage results
14:37:56 java.io.IOException: Remote call on  failed
14:37:56 at hudson.remoting.Channel.call(Channel.java:961)
14:37:56 at hudson.FilePath.act(FilePath.java:1036)
14:37:56 at hudson.FilePath.act(FilePath.java:1025)
14:37:56 at 
hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:544)
14:37:56 at 
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
14:37:56 at 
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
14:37:56 at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
14:37:56 at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
14:37:56 at hudson.model.Build$BuildExecution.post2(Build.java:186)
14:37:56 at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
14:37:56 at hudson.model.Run.execute(Run.java:1823)
14:37:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
14:37:56 at 
hudson.model.ResourceController.execute(ResourceController.java:97)
14:37:56 at hudson.model.Executor.run(Executor.java:429)
14:37:56 Caused by: javax.xml.stream.FactoryConfigurationError: Provider 
for class javax.xml.stream.XMLInputFactory cannot be created
14:37:56 at 
javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:370)
14:37:56 at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:313)
14:37:56 at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:227)
14:37:56 at 
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:154)
14:37:56 at 
hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:831)
14:37:56 at 
hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:818)
14:37:56 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2913)
14:37:56 at hudson.remoting.UserRequest.perform(UserRequest.java:212)
14:37:56 at hudson.remoting.UserRequest.perform(UserRequest.java:54)
14:37:56 at hudson.remoting.Request$2.run(Request.java:369)
14:37:56 at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
14:37:56 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
14:37:56 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
14:37:56 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
14:37:56 at java.lang.Thread.run(Thread.java:745)
14:37:56 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote 
call to bxb-ccbu-pine12
14:37:56 at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
14:37:56 at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
14:37:56 at hudson.remoting.Channel.call(Channel.java:955)
14:37:56 at hudson.FilePath.act(FilePath.java:1036)
14:37:56 at hudson.FilePath.act(FilePath.java:1025)
14:37:56 at 
hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:544)
14:37:56 at 
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
14:37:56 at 
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
14:37:56 at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
14:37:56 at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
14:37:56 at hudson.model.Build$BuildExecution.post2(Build.java:186)
14:37:56 at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
14:37:56 at hudson.model.Run.execute(Run.java:1823)
14:37:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
14:37:56 at 
hudson.model.ResourceController.execute(ResourceController.java:97)
14:37:56 at hudson.model.Executor.run(Executor.java:429)
14:37:56 Caused by: java.lang.RuntimeException: Provider for class 
javax.xml.stream.XMLInputFactory cannot be created
14:37:56 at 
javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:367)
14:37:56 ... 14 more
14:37:56 Caused by: java.util.ServiceConfigurationError: 
javax.xml.stream.XMLInputFactory: Error reading configuration file
14:37:56 at java.util.ServiceLoader.fail(ServiceLoader.java:232)
14:37:56 at java.util.ServiceLoader.parse(ServiceLoader.java:309)
14:37:56 at java.util.ServiceLoader.access$200(ServiceLoader.java:185)
14:37:56 at 
java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.ja

Searching Better Handling with Global Maven Settings in Declarative Pipeline

2020-06-16 Thread 'Sandra Parsick' via Jenkins Users
Hello everyone,

I have following set up in my Jenkins instance (Version 2.240):

A Maven setting.xml is stored in Managed File -> Global Maven Settings.xml. 
In Managed Jenkins -> Managed Tools, this settings.xml is set in Maven 
configuration -> Default global settings provider -> Provided global 
settings.xml. 

Now I have following declarative pipeline script:


pipeline {

agent any

tools {
jdk "11.0.7.j9-adpt"
}

stages {
stage ('Maven Build') {
steps {
checkout scm
withMaven(maven: 'mvn-3.6.3') {
sh "mvn install"
}

}
}

stage ('Sonar analyse') {
steps {
withMaven(maven: 'mvn-3.6.3') {
sh "mvn sonar:sonar"
}
}
}
}
}


It works fine, but I like to reduce duplication like the withMaven 
declarative. Therefore, I refactor the pipeline to the following one:


pipeline {

agent any

tools {
jdk "11.0.7.j9-adpt"
maven "mvn-3.6.3"
}

stages {
stage ('Maven Build') {
steps {
checkout scm
sh "mvn install"
}
}

stage ('Sonar analyse') {
steps {
sh "mvn sonar:sonar"
}
}
}
}


Unfortunately, with above pipeline script my global set Maven settings.xml 
isn't used. So my question is, is there a trick that I can say global in my 
pipeline script or in my Jenkins configuration that which settings.xml 
should be used without using withMaven?

Thank you and best regards,

Sandra

-- 
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/847cb4af-4b00-4f8e-837a-accde87caff4o%40googlegroups.com.


Re: how to obfuscate login page?

2020-06-16 Thread Gian Maxera
We had the same issue.
We solved putting a reverse proxy just for the webhooks.
In this way, nothing is exposed public but just the necessary for the
webhook

A tiny machine with Nginx using proxy_pass directive does the trick.

Cheers,
Gianluca


On Wed, 17 Jun 2020, 06:18 Harald Dunkel,  wrote:

> Hi folks,
>
> how can I obfuscate Jenkins' login page? I don't want everybody
> to know that its a Jenkins prior to login.
>
> IMHO its an unlucky design decision to run the user web interface
> and the webhook interface on the same port number. I wouldn't have
> to open the user web interface to the world outside, if not for the
> webhooks coming from google cloud. Or did I miss something here?
>
>
> Every helpful comment is highly appreciated
>
> Harri
>
> --
> 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/baa73c8c-49ea-7625-debe-6fa814e026af%40afaics.de
> .
>

-- 
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/CAPddqDWZpYQV%3DbaE2uVq2Q%3DPtgNduaXVMDXnqFBHYa0o9eATpg%40mail.gmail.com.


Re: ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

2020-06-16 Thread Antonio Gomez
Hello,
In global tools configuration check in JDK instalations if java path is
correct.
Check also $PATH from user that run this jobs

El mar., 16 jun. 2020 a las 19:41, Jagadeesh YENNE ()
escribió:

> Hi All,
>
>
> While I am running sonar-scanner job, I am getting below error, could someone 
> suggest me how to proceed on it.
>
>
> [MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash 
> /tmp/jenkins1683394883835788984.sh
> Running Sonar
>
> > market-forecaster-frontend@0.0.0 sonar 
> > /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend
> > sonar-scanner
>
> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
>  line 59: /usr/bin/java/bin/java: Not a directory
> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
>  line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory
> npm ERR! code ELIFECYCLE
> npm ERR! errno 126
> npm ERR! market-forecaster-frontend@0.0.0 sonar: `sonar-scanner`
> npm ERR! Exit status 126
> npm ERR!
> npm ERR! Failed at the market-forecaster-frontend@0.0.0 sonar script.
> npm ERR! This is probably not a problem with npm. There is likely additional 
> logging output above.
>
> npm ERR! A complete log of this run can be found in:
> npm ERR! 
> /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
>
>
> Regards,
> Jagadeesh
>
> --
> 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/f590f5dc-69ab-4267-a163-3a3d87480be0o%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/CACr-XEnFjWZAbBxD8v6ZgbQ2c6RbzQqxnbtVcbJ4_D%2B-kR1vBQ%40mail.gmail.com.