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.Environ

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,

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 elimina

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 '

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/jenkins

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 :

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 dow

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

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

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/resourc

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 Prak

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

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 al

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

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 */

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 betwee

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

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 bu