Need help on Jenkins Coverity Plugin

2020-04-16 Thread Victoria Wei Lei
I am trying to use Synopsys Coverity Plugin with a Build Wrapper. 

Coverity build Job fails right away with the following message:

Running Synopsys Coverity version: 2.3.1
FATAL: org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper
java.lang.ClassNotFoundException: 
org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080)
at java.lang.ClassLoader.loadClass(Unknown Source)
Caused: java.lang.NoClassDefFoundError: 
org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper
at 
com.synopsys.integration.jenkins.coverity.extensions.wrap.CoverityEnvironmentWrapper.setUp(CoverityEnvironmentWrapper.java:190)
at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
at hudson.model.Build$BuildExecution.doRun(Build.java:157)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1816)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)


Any input will be greatly appreciated. 


Thanks

Victoria 

-- 
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/2e8abcd0-655e-40a9-9280-dcbf83ee0743%40googlegroups.com.


Unable to set pod retention for Jenkins Kubernetes plugin Groovy script.

2020-04-16 Thread santhosh kumar
Trying to configure pod retention value  for Jenkins Kubernetes plugin using
groovy script.
kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kube
rnetes.pod.retention.Podretention.Never())
method is failing to configure with below error :

Invalid value provided in main configuration No signature of method: static
org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention.Never()
is applicable for argument types: () values: []

tried configuring by using different values for the method:
kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kube
rnetes.pod.retention.Never)

Error using the above value as well.

Please some one help me on this as i was struck with this from quite a long.

Below is the code:

import java.util.logging.Logger
import hudson.*
import hudson.model.*
import java.io.PrintWriter
import java.io.StringWriter
import jenkins.*
import jenkins.install.InstallState
import jenkins.model.*
import jenkins.util.xml.*
import javax.xml.xpath.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import org.jenkinsci.plugins.plaincredentials.impl.*
import org.jenkinsci.plugins.docker.commons.credentials.*
import org.csanchez.jenkins.plugins.kubernetes.*
import org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention

KubernetesCloud kubernetes = new KubernetesCloud('test')
kubernetes.setServerUrl('http://test_url')
kubernetes.setMaxRequestsPerHostStr(20)
kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kube
rnetes.pod.retention.PodRetention.Never())
kubernetes.setWaitForPodSec(90)

// documentation reference

 https://javadoc.jenkins.io/plugin/kubernetes/

// Method used
setPodRetention(PodRetention podRetention)
Set the global pod retention policy for the plugin.

Can some let me know how to set the pod retention value using groovy with 
setPodRetention

-- 
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/63d27137-2d47-4d88-af53-c04ec482aa7a%40googlegroups.com.


Jenkins Build must fail if there are “high severity” or “critical severity” alerts in github

2020-04-16 Thread Ravindra verma
Hi Experts , 

I need a help  in regards to Jenkins job , i want to set up a Protocol in 
jenkins job , if there is any high severity” or critical severity Alerts in 
Github thn job get stop or it will not start .han

Any Grovay code or UI medium will work for me .

Thanks
Ravindra Verma 

-- 
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/5e2861b3-608b-4d27-b701-a4c00baf69f9%40googlegroups.com.