webpack": "4.19.1" dependency error

2020-04-02 Thread Braj Mohan


Hello Everyone,

I am newbies in Jenkins. In Jenkin, I have done some setup and doing build on 
that but I am getting error in 
npm run build  portion below is the log also please help me out  

+ sudo npm run build

their might be a problem with teh project dependency tree.
It is likely not a bug in Create React App, but something you need to fix 
locally.

Teh react-scripts package provided by Create React App requires a dependency:

  "webpack": "4.19.1"

Don't try to install it manually: you're package manager does it automatically.
However, a different version of webpack was detected higher up in teh tree:

  /var/www/html/runbhumi/frontend/node_modules/webpack (version: 4.42.0) 

Manually installing incompatible versions is known to cause hard-to-debug 
issues.

If prefer to ignore dis check, add SKIP_PREFLIGHT_CHECK=true to an .env file in 
you're project.
That will permanently disable dis message but you might encounter other issues.

To fix teh dependency tree, try following teh steps below in teh exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in you're 
project folder.
  2. Delete node_modules in you're project folder.
  3. Remove "webpack" from dependencies and/or devDependencies in teh 
package.json file in you're project folder.
  4. Run npm install or yarn, depending on teh package manager you use.

In most cases, dis should be enough to fix teh problem.
If dis TEMPhas not halped, their are a few other things you can try:

  5. If you used npm, install yarn (http://yarnpkg.com/) and repeat teh above 
steps wif it instead.
 This may help because npm TEMPhas non issues wif package hoisting which 
may get resolved in future versions.

  6. Check if /var/www/html/runbhumi/frontend/node_modules/webpack is outside 
your project directory.
 For example, you might has accidentally installed something in your home 
folder.

  7. Try running npm ls webpack in your project folder.
 This will tell you which other package (apart from teh expected 
react-scripts) installed webpack.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your 
project.
That would permanently disable this preflight check in case you want to proceed 
anyway.

P.S. We no this message is long but please read teh steps above :-) We hope you 
find them helpful!

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sports@0.1.3 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at teh sports@0.1.3 build script.
npm ERR! This is probably not a problem wif npm. There is likely additional 
logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2020-04-02T06_57_36_127Z-debug.log
/usr/bin/create-react-app -> /usr/lib/node_modules/create-react-app/index.js
+ create-react-app@3.4.1
updated 1 package in 4.112s
/var/www/html/runbhumi/admin

Thank you

With Best Regard

B.M.Wadia

 



-- 
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/ce30a455-282e-4464-972d-517c46943d8c%40googlegroups.com.


Does Slack Notification plugin know to autodetect build status?

2020-04-02 Thread Vitaly Karasik
Question regarding Slack Notification plugin in declarative pipeline: is 
there an elegant way to modify color and embed relevant emoji depends on 
currentBuild.currentResult?
Or I should clone "slackSend" 3 times - for success, unstable and failed 
build?

-- 
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/74fae4a9-0820-4784-a5bf-015af8c7cc65%40googlegroups.com.


Re: How to check inside Jenkins pipeline script if Ansible play-book succeeded or failed.

2020-04-02 Thread kalkin powale
Hi Shifa,

I don't know if function ansiblePlaybook returns output or not. But, you 
can write the result of ansiblePlaybook in some text file.
After completion of ansiblePlabook function, checks the status of the 
result from a text file.

save the result as some variable "retVal".

then in between two-stages execute following command

stage('stg_1'){}

if( retVal == 'Fail') {

   ex()

   currentBuild.result = 'ABORTED'

   return}

stage('stg_2'){}


On Wednesday, 1 April 2020 07:02:53 UTC+2, Shifa Shaikh wrote:
>
> Below is my Jenkins pipeline script. I wish to call ex("ansible-failed") 
> function whenever the ansible-playbook test.yml fails and thereby abort the 
> pipeline. Below is my pipeline script.
>
>
> def ex(param)
> {echo "ABORT due to:" + param}
>
> pipeline{
> stages{
> stage('first')  {
>  steps {
> script   {
> def user = "user1"
> }
>
> echo "Calling ansible"
>
> ansiblePlaybook(playbook: '/app/test.yml' extraVars: [ 
> app_ip: "10.0.0.12,10.0.0.13" ])
>
> }
> }
> stage('second')   {
>  steps {
>   script {
> println "Second Play"
> }
> }
> }
>
> }
> }
>
>
>
> The above Jenkins pipeline script invokes ansible-playbook however, I do 
> not know how to detect if the ansible play succeeded or failed. In case it 
> failed I wish to call the ex() function and abort the Jenkins pipeline.
>
>
> Incase ansible-playbook run succeeds then I wish to simply continue and 
> execute stage('second').
>
>
> Can you please suggest how we can check the condition if ansible run 
> succeeded or failed inside the Jenkins pipeline script?
>

-- 
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/37ad0bd5-50d6-4f38-86f3-633687bc3772%40googlegroups.com.


Docker cloud broken (java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget)

2020-04-02 Thread Zach LaCelle


This happened after updating Jenkins and updating all plugins. One note: 
plugin update failed once because of a bad proxy setting. I re-installed 
all plugins from the command line using the following script (this is in 
the Docker version of Jenkins master):

 

cd ~/plugins

for i in `ls -d */ | awk '{print substr($0, 1, length($0)-1)}'`; \

do java -jar ~/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ 
install-plugin $i; \

done

 

The error:

 

java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget

 

The stack trace:

 

java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget

  at 
io.jenkins.docker.client.NettyDockerCmdExecFactory.init(NettyDockerCmdExecFactory.java:235)

  at 
com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:193)

  at 
com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)

  at 
io.jenkins.docker.client.DockerAPI.makeClient(DockerAPI.java:249)

  at 
io.jenkins.docker.client.DockerAPI.getOrMakeClient(DockerAPI.java:199)

  at 
io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:168)

  at 
io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:151)

  at 
io.jenkins.docker.client.DockerAPI$DescriptorImpl.doTestConnection(DockerAPI.java:358)

  at 
java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)

  at 
org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)

  at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)

  at 
org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)

  at 
org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)

  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)

Caused: javax.servlet.ServletException

  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797)

  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)

  at 
org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)

  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.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:755)

  at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)

  at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

  at 
jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)

  at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)

  at 
org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)

  at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)

  at 
io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)

  at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)

  at 
io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)

  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:1604)

  at 
hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153)

  at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)

  at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)

  at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)

  at 
hudson.security.ChainedServletFilter$1.

Re: Does Slack Notification plugin know to autodetect build status?

2020-04-02 Thread Yeikel
Not sure if it is the "most elegant way" but I just defined a property for
the color and mutated it based on the build status using an if statement. I
also have a base message that I modify using the build status and I use the
same approach.

String color= ...
String message = ""
If(started){
color =...
message+= "emoji"
} else if (success){
color=...
}

slackSend(color: color.
On Thu, Apr 2, 2020, 7:40 AM Vitaly Karasik  wrote:

> Question regarding Slack Notification plugin in declarative pipeline: is
> there an elegant way to modify color and embed relevant emoji depends on
> currentBuild.currentResult?
> Or I should clone "slackSend" 3 times - for success, unstable and failed
> build?
>
> --
> 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/74fae4a9-0820-4784-a5bf-015af8c7cc65%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/CAMMhyA3psviLC9LOE%2BO7jAxzev_%3DuKfmGMEYnA3fX0BCkwmB0w%40mail.gmail.com.


Re: Jenkins HTML publishing on build level without copies

2020-04-02 Thread Filip Kosik
Awesome, that is what I was looking for. Thank you.

On Wednesday, April 1, 2020 at 5:51:40 PM UTC-6, Richard Bywater wrote:
>
> Yes there is - use "includes" parameter which is an Ant compatible pattern 
> that specifies what files in the report directory to archive. It defaults 
> to archiving all files in the given report directory.
>
> Richard.
>
>
> On Thu, 2 Apr 2020 at 08:41, Filip Kosik  > wrote:
>
>> Thanks Gianluca for your explanation.
>> This is exactly my problem. So, there is no way *how I can publish only 
>> specific files without archiving all files in directory*?
>>
>> The reason for the build number in my filenames is generating all HTML 
>> files to the shared directory (it is not inside build directory). It's not 
>> index (it was only example) and it's used for another purpose. So, if there 
>> is no way how publish and archive only specific files, I would make a fork 
>> of the plugin and change it by myself.  
>>
>> Thank you for help.
>> Filip
>>
>>
>> On Wednesday, April 1, 2020 at 1:27:40 PM UTC-6, Gianluca wrote:
>>
>>> Hi,
>>> I think you misunderstood the meaning of
>>> reportDir: "/${reportDir}",
>>>
>>> The publishHTML publishes the directory ... not the file. The 
>>> reportFiles is the "index" that is loaded as beginning but it's the 
>>> reportDir with whole is content that is published by the plugin.
>>>
>>> So, you can't have a reportDir that's shared across builds or everything 
>>> will be published for all builds getting duplicates.
>>>
>>> I'm not sure why do you need the build number in the index file, Jenkins 
>>> publishHTML plugin already put the generated files into separated builds 
>>> directory as you already found out by looking at the reportDirs.
>>>
>>> So, I would suggest to rethink your strategy of building reports and 
>>> avoid file names with build number into it.
>>>
>>> Cheers,
>>> Gianluca.
>>>
>>>
>>> On Wednesday, 1 April 2020 20:20:56 UTC+1, Filip Kosik wrote:

 Hi Gianluca,

 thank you for your answer. Here is an example of my problem:

 When I run pipeline code:
 def fileName = "index_${reportBuildNo}.html";
 … // HTML is generated here
 publishHTML (target: [
   allowMissing: false,
   alwaysLinkToLastBuild: false,
   keepAll: true,
   reportDir: "/${reportDir}",
   reportFiles: fileName,
   reportName: "Results"
 ])
 my build directories after 3 builds contains the following:
 build/1/htmlreports
  - index_1.html
 build/2/htmlreports
  - index_1.html
  - index_2.html
 build/3/htmlreports
  - index_1.html
  - index_2.html
  - index_3.html

 Maybe the problem is in my generic report filenames (including build 
 number). 
 My old and new HTML files are generated into one directory for all 
 builds. When HTML files are generated I pass only filenames of the current 
 build to htmlPublisher.



 On Wednesday, April 1, 2020 at 12:46:35 PM UTC-6, Gianluca wrote:
>
> Hi, I have this in my pipeline
>
> publishHTML target: [
> allowMissing: true,
> alwaysLinkToLastBuild: false,
> keepAll: true,
> reportDir: 'out/python3-cov',
> reportFiles: '*/index.html',
> reportName: 'Python 3 Coverage'
> ]
>
>
>
> And I don't have old reports in builds. Each build has it own report 
> built.
>
> So, or I don't understand what you are asking for, or you 
> misunderstood the behaviour? 
>
> Can you details more what you mean with duplications?
>
>
> On Wednesday, 1 April 2020 18:32:12 UTC+1, Filip Kosik wrote:
>>
>> Hi,
>>
>> I am trying to *publish HTML reports for each build*. I tried plugin 
>> HtmlPublisher 
>> (1.22)  but when it 
>> publishes my reports on their build page (using keepAll=true), it 
>> creates copies of reports from all previous builds in each build 
>> directory. 
>> So, each Jenkins build includes many copies of old reports and they are 
>> bigger and bigger. If I publish my reports on the project page (using 
>> keepAll=false), old reports are preserved in their project directory 
>> (in my file system) but only the last report is accessible from Jenkins. 
>> Is 
>> there any way how to have reports *on their build pages without 
>> creation of their duplicates*? Maybe, there is some parameter that 
>> I'm still missing.
>>
>>
>> My pipeline includes the following HtmlPublisher use:
>>
>>
>> publishHTML (target: [
>>   allowMissing: false,
>>   alwaysLinkToLastBuild: false,
>>   keepAll: true,
>>   reportDir: "./htmlReports",
>>   reportFiles: reportFileNames, //generic variable
>>   reportName: "Results"
>> ])
>>  
>>
>> Thank you
>>
> -- 
>> You received this message becau

Re: How to check inside Jenkins pipeline script if Ansible play-book succeeded or failed.

2020-04-02 Thread Yeikel
Also...if it returns an error code back, you could also use that as well

On Thu, Apr 2, 2020, 11:45 AM kalkin powale  wrote:

> Hi Shifa,
>
> I don't know if function ansiblePlaybook returns output or not. But, you
> can write the result of ansiblePlaybook in some text file.
> After completion of ansiblePlabook function, checks the status of the
> result from a text file.
>
> save the result as some variable "retVal".
>
> then in between two-stages execute following command
>
> stage('stg_1'){}
>
> if( retVal == 'Fail') {
>
>ex()
>
>currentBuild.result = 'ABORTED'
>
>return}
>
> stage('stg_2'){}
>
>
> On Wednesday, 1 April 2020 07:02:53 UTC+2, Shifa Shaikh wrote:
>>
>> Below is my Jenkins pipeline script. I wish to call ex("ansible-failed")
>> function whenever the ansible-playbook test.yml fails and thereby abort the
>> pipeline. Below is my pipeline script.
>>
>>
>> def ex(param)
>> {echo "ABORT due to:" + param}
>>
>> pipeline{
>> stages{
>> stage('first')  {
>>  steps {
>> script   {
>> def user = "user1"
>> }
>>
>> echo "Calling ansible"
>>
>> ansiblePlaybook(playbook: '/app/test.yml' extraVars: [
>> app_ip: "10.0.0.12,10.0.0.13" ])
>>
>> }
>> }
>> stage('second')   {
>>  steps {
>>   script {
>> println "Second Play"
>> }
>> }
>> }
>>
>> }
>> }
>>
>>
>>
>> The above Jenkins pipeline script invokes ansible-playbook however, I do
>> not know how to detect if the ansible play succeeded or failed. In case it
>> failed I wish to call the ex() function and abort the Jenkins pipeline.
>>
>>
>> Incase ansible-playbook run succeeds then I wish to simply continue and
>> execute stage('second').
>>
>>
>> Can you please suggest how we can check the condition if ansible run
>> succeeded or failed inside the Jenkins pipeline script?
>>
> --
> 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/37ad0bd5-50d6-4f38-86f3-633687bc3772%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/CAMMhyA2dRvOmc8i%3DYJhNt1xC0fTotM2Dba0f06xWG0%2B15-UutQ%40mail.gmail.com.


CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-02 Thread Hakan Rafik
I'm using the next generation plugins to represent the CppCheck warnings 
and errors. 
But the plugins is not parsing* Carriage return*: 
 or *Line feed*: 
. 

I've tried to feed the plugins with the given example 
(https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/test/resources/io/jenkins/plugins/analysis/warnings/cppcheck.xml)
 
generates error and didn't produces any formatted string.

Any help in this regards is highly appreciated. 

Regards,

-- 
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/4ef79c27-73bf-4062-a240-65f9b38f9341%40googlegroups.com.


Re: Jenkinsfile integration with Azure AKS

2020-04-02 Thread Paul Moore
https://docs.microsoft.com/en-us/azure/jenkins/jenkins-continuous-deployment


Have you looked at the process and setup detailed at the link above?

Paul Moore

On Wed, Apr 1, 2020 at 11:49 PM Sunny Prakash 
wrote:

> Any suggestions will be highly appreciated
>
> On Thu, 2 Apr, 2020, 12:06 am Prakasun, 
> wrote:
>
>> Team,
>>
>> We have to write a jenkinsfile in which we want to integrate Continous
>> deployment part with Azure AKS. Our on prem data center Jenkins will
>> automatically deploy app into Azure AKS. No documents available for this
>> kind requirements. All the documents suggest Jenkins bootstrap through
>> Azure agent vm and Azure market place. Can we basically integrate on prem
>> Jenkins with Azure aks
>>
>> Any suggestions would be really great.
>>
>> Warm Regards,
>>
>> --
>> 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/ee6c3cbf-da2d-47b3-b823-f85f1c188db3%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/CAMyXdkOiz9miY7GVVVL-uy0GR-D6MLrAMX3oLvhSS2g3JniJVA%40mail.gmail.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/CAL35EFmMsNJfjYE9xFzaOB%2BLaA2WVDweH-Dj4qr5LHwqQo6%3Dpg%40mail.gmail.com.


Re: Jenkinsfile integration with Azure AKS

2020-04-02 Thread Sunny Prakash
Thanks Moore for your suggestions.

I already check this document earlier. In this doc its basically bootstrap
the Jenkins in the Azure VM agent. I am looking for process where I can
connect my Jenkins local to Azure AKS. I could not find any document
related to this any where not even on Microsoft document hub.

Any doc or process will be highly appreciated.


On Thu, 2 Apr, 2020, 10:28 pm Paul Moore,  wrote:

>
> https://docs.microsoft.com/en-us/azure/jenkins/jenkins-continuous-deployment
>
>
> Have you looked at the process and setup detailed at the link above?
>
> Paul Moore
>
> On Wed, Apr 1, 2020 at 11:49 PM Sunny Prakash 
> wrote:
>
>> Any suggestions will be highly appreciated
>>
>> On Thu, 2 Apr, 2020, 12:06 am Prakasun, 
>> wrote:
>>
>>> Team,
>>>
>>> We have to write a jenkinsfile in which we want to integrate Continous
>>> deployment part with Azure AKS. Our on prem data center Jenkins will
>>> automatically deploy app into Azure AKS. No documents available for this
>>> kind requirements. All the documents suggest Jenkins bootstrap through
>>> Azure agent vm and Azure market place. Can we basically integrate on prem
>>> Jenkins with Azure aks
>>>
>>> Any suggestions would be really great.
>>>
>>> Warm Regards,
>>>
>>> --
>>> 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/ee6c3cbf-da2d-47b3-b823-f85f1c188db3%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/CAMyXdkOiz9miY7GVVVL-uy0GR-D6MLrAMX3oLvhSS2g3JniJVA%40mail.gmail.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/CAL35EFmMsNJfjYE9xFzaOB%2BLaA2WVDweH-Dj4qr5LHwqQo6%3Dpg%40mail.gmail.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/CAMyXdkNO4ZUCtRUDocZMfJV1%3Dx_GF2nfJiP%2BjZmTO4PFmwB9ZQ%40mail.gmail.com.


Re: Docker cloud broken (java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget)

2020-04-02 Thread Mark Waite
It appears that the docker plugin 1.2.0 release made about 2 hours ago has
deleted that class.  See
https://github.com/jenkinsci/docker-plugin/compare/docker-plugin-1.1.9...docker-plugin-1.2.0
for
the comparison between the classes.

You may need to use docker plugin 1.1.9 rather than docker plugin 1.2.0.

On Thu, Apr 2, 2020 at 10:01 AM Zach LaCelle  wrote:

> This happened after updating Jenkins and updating all plugins. One note:
> plugin update failed once because of a bad proxy setting. I re-installed
> all plugins from the command line using the following script (this is in
> the Docker version of Jenkins master):
>
>
>
> cd ~/plugins
>
> for i in `ls -d */ | awk '{print substr($0, 1, length($0)-1)}'`; \
>
> do java -jar ~/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/
> install-plugin $i; \
>
> done
>
>
>
> The error:
>
>
>
> java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget
>
>
>
> The stack trace:
>
>
>
> java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget
>
>   at
> io.jenkins.docker.client.NettyDockerCmdExecFactory.init(NettyDockerCmdExecFactory.java:235)
>
>   at
> com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:193)
>
>   at
> com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
>
>   at
> io.jenkins.docker.client.DockerAPI.makeClient(DockerAPI.java:249)
>
>   at
> io.jenkins.docker.client.DockerAPI.getOrMakeClient(DockerAPI.java:199)
>
>   at
> io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:168)
>
>   at
> io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:151)
>
>   at
> io.jenkins.docker.client.DockerAPI$DescriptorImpl.doTestConnection(DockerAPI.java:358)
>
>   at
> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>
>   at
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
>
>   at
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
>
>   at
> org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
>
>   at
> org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
>
>   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)
>
> Caused: javax.servlet.ServletException
>
>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797)
>
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
>
>   at
> org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
>
>   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.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:755)
>
>   at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
>
>   at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
>
>   at
> jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
>
>   at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at
> org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
>
>   at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at
> io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
>
>   at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at
> io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
>
>   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)
>
>   

Re: Docker cloud broken (java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget)

2020-04-02 Thread Zach LaCelle
Thanks Mark, this is helpful. Here's what I have installed currently for 
Docker plugins:

[image: installed_docker_plugins.png]

I believe I have 1.1.9 installed. Is it another plugin, possibly? I 
apologize, I don't have the Jenkins/Java knowledge to dig through this 
myself. I could try just downgrading everything I can and see what 
happens...

Thank you,

-Zach

On Thursday, April 2, 2020 at 1:26:20 PM UTC-4, Mark Waite wrote:
>
> It appears that the docker plugin 1.2.0 release made about 2 hours ago has 
> deleted that class.  See  
> https://github.com/jenkinsci/docker-plugin/compare/docker-plugin-1.1.9...docker-plugin-1.2.0
>  for 
> the comparison between the classes.
>
> You may need to use docker plugin 1.1.9 rather than docker plugin 1.2.0.
>
> On Thu, Apr 2, 2020 at 10:01 AM Zach LaCelle  > wrote:
>
>> This happened after updating Jenkins and updating all plugins. One note: 
>> plugin update failed once because of a bad proxy setting. I re-installed 
>> all plugins from the command line using the following script (this is in 
>> the Docker version of Jenkins master):
>>
>>  
>>
>> cd ~/plugins
>>
>> for i in `ls -d */ | awk '{print substr($0, 1, length($0)-1)}'`; \
>>
>> do java -jar ~/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ 
>> install-plugin $i; \
>>
>> done
>>
>>  
>>
>> The error:
>>
>>  
>>
>> java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget
>>
>>  
>>
>> The stack trace:
>>
>>  
>>
>> java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget
>>
>>   at 
>> io.jenkins.docker.client.NettyDockerCmdExecFactory.init(NettyDockerCmdExecFactory.java:235)
>>
>>   at 
>> com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:193)
>>
>>   at 
>> com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
>>
>>   at 
>> io.jenkins.docker.client.DockerAPI.makeClient(DockerAPI.java:249)
>>
>>   at 
>> io.jenkins.docker.client.DockerAPI.getOrMakeClient(DockerAPI.java:199)
>>
>>   at 
>> io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:168)
>>
>>   at 
>> io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:151)
>>
>>   at 
>> io.jenkins.docker.client.DockerAPI$DescriptorImpl.doTestConnection(DockerAPI.java:358)
>>
>>   at 
>> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>>
>>   at 
>> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
>>
>>   at 
>> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
>>
>>   at 
>> org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
>>
>>   at 
>> org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
>>
>>   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)
>>
>> Caused: javax.servlet.ServletException
>>
>>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797)
>>
>>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
>>
>>   at 
>> org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
>>
>>   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.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:755)
>>
>>   at 
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
>>
>>   at 
>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
>>
>>   at 
>> jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
>>
>>   at 
>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>>
>>   at 
>> org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
>>
>>   at 
>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>>
>>   at 
>> io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:

Re: Docker cloud broken (java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget)

2020-04-02 Thread Zach LaCelle
Never mind, apparently what happened is I updated all of the other Docker 
plugins (Docker API Plugin, Docker Commons Plugin, and Docker Pipeline) but 
the Docker plugin itself was still 1.1.9. Re-updating everything seems to 
have worked. I just picked a bad time to run the plugin update command :)

In case this helps anyone else, here are the versions that I have now that 
work:

[image: installed_docker_plugins.png]


On Thursday, April 2, 2020 at 12:01:23 PM UTC-4, Zach LaCelle wrote:
>
> This happened after updating Jenkins and updating all plugins. One note: 
> plugin update failed once because of a bad proxy setting. I re-installed 
> all plugins from the command line using the following script (this is in 
> the Docker version of Jenkins master):
>
>  
>
> cd ~/plugins
>
> for i in `ls -d */ | awk '{print substr($0, 1, length($0)-1)}'`; \
>
> do java -jar ~/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ 
> install-plugin $i; \
>
> done
>
>  
>
> The error:
>
>  
>
> java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget
>
>  
>
> The stack trace:
>
>  
>
> java.lang.NoClassDefFoundError: com/github/dockerjava/netty/WebTarget
>
>   at 
> io.jenkins.docker.client.NettyDockerCmdExecFactory.init(NettyDockerCmdExecFactory.java:235)
>
>   at 
> com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:193)
>
>   at 
> com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
>
>   at 
> io.jenkins.docker.client.DockerAPI.makeClient(DockerAPI.java:249)
>
>   at 
> io.jenkins.docker.client.DockerAPI.getOrMakeClient(DockerAPI.java:199)
>
>   at 
> io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:168)
>
>   at 
> io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:151)
>
>   at 
> io.jenkins.docker.client.DockerAPI$DescriptorImpl.doTestConnection(DockerAPI.java:358)
>
>   at 
> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>
>   at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
>
>   at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
>
>   at 
> org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
>
>   at 
> org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
>
>   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)
>
> Caused: javax.servlet.ServletException
>
>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797)
>
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
>
>   at 
> org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
>
>   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.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:755)
>
>   at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
>
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
>
>   at 
> jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
>
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at 
> org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
>
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at 
> io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
>
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at 
> io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
>
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>
>   at 
> jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
>
>   at

Re: CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-02 Thread Ullrich Hafner


> Am 02.04.2020 um 13:06 schrieb Hakan Rafik :
> 
> I'm using the next generation plugins to represent the CppCheck warnings and 
> errors. 
> But the plugins is not parsing Carriage return: 
 or Line feed: 
. 
> I've tried to feed the plugins with the given example 
> (https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/test/resources/io/jenkins/plugins/analysis/warnings/cppcheck.xml)
>  generates error and didn't produces any formatted string.
> 
> Any help in this regards is highly appreciated. 
> 

When you don’t show error messages or log messages we cannot help. Just writing 
that it does not work is not enough information.

> Regards,
> 
> 
> -- 
> 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/4ef79c27-73bf-4062-a240-65f9b38f9341%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/0A40A6D1-60D0-477B-B000-430235D6808E%40gmail.com.


Re: CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-02 Thread Ahmed Rafiq
Thanks for your reply.
I've used the example xml from the given link, and getting error -

Started by user unknown or anonymous
Running as SYSTEM
Building in workspace
/media/persistent_storage/home/jenkins-warnings/work/workspace/test
[test] $ /bin/sh -xe /tmp/jenkins918250917560153069.sh
+ echo '

  
  
/tmp/jenkins918250917560153069.sh: line 7: syntax error near
unexpected token `newline'
  

  
  
  https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/test/resources/io/jenkins/plugins/analysis/warnings/cppcheck.xml)
> generates error and didn't produces any formatted string.
>
> Any help in this regards is highly appreciated.
>
>
> When you don’t show error messages or log messages we cannot help. Just
> writing that it does not work is not enough information.
>
> Regards,
>
>
> --
> 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/4ef79c27-73bf-4062-a240-65f9b38f9341%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/0A40A6D1-60D0-477B-B000-430235D6808E%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/CAOxCx6%3D1Xs5dsfuK7Fs8xpTG2VUCXPfjisOs6KWyFbPERrpc%2BQ%40mail.gmail.com.


javax.servlet.ServletException with iconSiz

2020-04-02 Thread Thierry Delisle


Hi,

I am using Jenkins version : 2.222.1 and am regularly getting 
"WARNINGo.e.j.s.h.ContextHandler$Context#log: Error while serving 
http://[SERVER]/iconSize"; with a stack trace, taking large amount of log 
space.

Is this a bug or a configuration problem? What steps can I take to 
eliminate this warning?

Attached is the entire stack trace.

Thank you for time.

Thierry

-- 
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/182d8450-825a-4cf1-b2d6-c1c3fa2c4654%40googlegroups.com.
2020-04-02 17:43:07.298+ [id=15162] WARNING 
o.e.j.s.h.ContextHandler$Context#log: Error while serving 
http://[SERVER]/iconSize
javax.servlet.ServletException
at jenkins.model.Jenkins.doIconSize(Jenkins.java:4528)
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.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:755)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at 
jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
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:1604)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:159)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
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:135)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 

Possibility to include Git change logs from failed build to next success build

2020-04-02 Thread Dominic Espiritu
Hi,

I just noticed on my pipeline builds when I have a failed build, the the 
pipeline detected git change logs from a couple of developers maybe 5 for 
example, and one of them can cause a failure if there were code errors 
checked in, when that code error is fixed, after the next successful job, 
those change logs will be no longer considered as new code change, is there 
a workaround to include those logs in the next successful build?

Thanks
Dominic

-- 
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/804269e0-0cf2-40c6-9c84-5ba6a7990c05%40googlegroups.com.


JENKINS - GLOBAL VARS

2020-04-02 Thread 3338111
I ask for urgent help.
I have a code that adds a global variable to Jenkins, it works, but the 
pipeline is always FAILED, but there are no errors in Console. Why is the 
pipeline FAILED and how can I fix it?
p. s. Tried to insert in try-catch, but still FAILED.

Code:

import hudson.slaves.EnvironmentVariablesNodeProperty
import jenkins.model.Jenkins

instance = Jenkins.getInstance()
globalNodeProperties = instance.getGlobalNodeProperties()
envVarsNodePropertyList = 
globalNodeProperties.getAll(EnvironmentVariablesNodeProperty.class)

newEnvVarsNodeProperty = null
envVars = null

if ( envVarsNodePropertyList == null || envVarsNodePropertyList.size() == 0 ) {
  newEnvVarsNodeProperty = new EnvironmentVariablesNodeProperty();
  globalNodeProperties.add(newEnvVarsNodeProperty)
  envVars = newEnvVarsNodeProperty.getEnvVars()
} else {
  envVars = envVarsNodePropertyList.get(0).getEnvVars()

envVars.put("snapshot_id", "Sample Groovy Global Var 3")
instance.save()

-- 
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/1767169122.20200403080251%40gmail.com.