ImportError No module named Image in Jenkins

2016-05-22 Thread Cherry Tsai


Hi guys,

I had python trouble. I want to compare two images using python in Jenkins. 

When I added "import Image" or "from PIL import Image" in my script, it 
will show error message "ImportError: No module named Image".

But use "import os, time", it was working.


Basic environment:

   1. 
   
   use docker official jenkins
   2. 
   
   python 2.7
   3. 
   
   PYTHONPATH is /usr/lib/python2.7/dist-packages/PIL
   /usr/lib/python2.7/dist-packages/PIL
   4. 
   
   Sys.path is ['', '/usr/lib/python2.7', 
   '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', 
   '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', 
   '/usr/local/lib/python2.7/dist-packages', 
   '/usr/lib/python2.7/dist-packages', 
   '/usr/lib/python2.7/dist-packages/PILcompat']
   

Please help me how to solve it?

-- 
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/83a816a4-d55d-42ad-8e09-84657d85b4a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Exception with New Project Type Build

2016-05-22 Thread nandish reddy
Hi,

Is there any example or tutorial on how to create a plugin new Project type 
?


I tried to create one by referring the code of some of the existing plugins 
like Multi-Job, Maven etc..

I have extended hudson.model.Project , hudson.model.Build;

With this a new Project Type gets created, but when trying to run the build 
i get the following exception..


SEVERE: Unexpected executor death
java.lang.Error: java.lang.NoSuchMethodException: .()
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:186)
at hudson.model.AbstractProject.newBuild(AbstractProject.java:1019)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1210)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:145)
at hudson.model.Executor$1.call(Executor.java:364)
at hudson.model.Executor$1.call(Executor.java:346)
at hudson.model.Queue._withLock(Queue.java:1405)
at hudson.model.Queue.withLock(Queue.java:1270)
at hudson.model.Executor.run(Executor.java:346)
Caused by: java.lang.NoSuchMethodException:  .()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getConstructor(Class.java:1825)
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:175)
... 8 more


Any help appreciated. 

Regards,
Nandish


-- 
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/a3baa042-ecdf-4b1c-8493-d1a364cac9f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Custom metrics

2016-05-22 Thread Andrew Melo
Hello,

I had two short questions about what was possible with pipeline jobs:

1) Suppose I want to track some arbitrary values between builds and
fail if they have decreased. Is there a way to stash integers/values
between builds? For example, let's say I want to enforce that the lint
of the codebase gets better with each commit or github pull request.
Is there a step/command that could be used within groovy to extract
the previous value to make the comparison? Or, am I stuck basically
manually copying results to "magic" places on the master that later
builds can suck down.

2) Let's suppose that I want to publish a trend of these values as a
graph on the main job page. I know there's the HTML publisher that can
publish arbitrary pages, but that's buried another click down. Is
there a way to have custom charts/HTML show up on the job/build pages
themselves?

Thanks!
Andrew

-- 
--
Andrew Melo

-- 
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/CAJY4aWHCpRWdaigvsBSJnobD2MEE3%3DgJNB57C5Ftr3dHGc6aqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


getFailedSinceRun()

2016-05-22 Thread Marky Jackson
I am writing a jelly script and using getFailedSinceRun() method and the 
email-ext plugin to send results of failed test via email.
This works and shows for example: failed since #5 with an associated link 
to that build.
What I am trying to do is actually take getFailedSinceRun() and the current 
${env.BUILD_NUMBER} and show: This build has failed the last x number of 
builds (example: if this current build is #10 and the last 5 builds have 
failed then show: This build has failed the last 5 builds).
The Test Results Analyzer plugin does this but I cannot email those results.
I have tried a variety of ways with no luck. I am trying to not have to 
reinvent the wheel.
Thanks in advance.


Also, here is a snippet of the actual code:



  

  ${failed_alert.getFailedSinceRun().getDisplayName()}


This is HTML in jelly and the output is:

Total Number Of Errors In This Build Are: 11 errors in package Test
Failing Since Build #Failing Test Method
#5 Test

-- 
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/5d92fb46-fb27-47b5-9a50-52558d142f00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.