Is it possible to run jenkins in a HA on Kubernetes

2023-05-22 Thread satish singh
Hi Team,

Does Jenkins support HA ? Can we run 2 or more replicas of jenkins on
Kubernetes ?

Even if we run does it support it and will run without any data corruption?

Regards,
Satish

-- 
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/CAAzuHYt5S9efjK5tXmos9j70b2WWgUsBt5rGfGXqs%2BOJR4RiSg%40mail.gmail.com.


Re: email-extension: using extended email template in a pipeline job by template name

2023-05-22 Thread Alex Earl
I think you need to use:

body: '${SCRIPT, template="default_email_template"}'

On Mon, May 22, 2023 at 2:48 PM Mike MBS  wrote:

> Hi,
>
> I asked this question on StackOverflow – but seems there is a lack of
> engagement regarding Jenkins there..so I am asking here as well:
>
>
>
> I've created a template named 'default_email_template' by going to Manage
> Jenkins -> Editable Email Notification Templates -> Add New Template.
> I've also provided the content for default Recipients,  Subject and Body. I
> now would simply like to have my multiple pipeline job use that template as
> is. the following does not work:
>
> *Code:*
>
> def sendEmail() {
>
> emailext(
>
>   '${SCRIPT, template="default_email_template"}',
>
>   subject: "'Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
>
> )
>
> }
>
>
>
> *Exception:*
>
> java.lang.IllegalArgumentException: Expected named arguments but got
> [{subject='Job testJob [12]'}, ${SCRIPT, template="default_email_template"}]
>
> at org.jenkinsci.plugins.workflow.cps.DSL.parseArgs(DSL.java:712)
>
> at org.jenkinsci.plugins.workflow.cps.DSL.parseArgs(DSL.java:644)
>
> at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:237)
>
> at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
>
> at
> org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
>
> at
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:47)
>
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
>
> at
> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
>
> at WorkflowScript.sendEmail(WorkflowScript:160)
>
> at WorkflowScript.run(WorkflowScript:122)
>
>
>
> What is the proper way to reference a template created by using this
> extension?  Any help would be appreciated.
>
>
>
> Thanks much
>
> --
> 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/e1de2635-211f-48d7-aab4-7a4b4f2cff62n%40googlegroups.com
> 
> .
>


-- 
Website: http://earl-of-code.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/CAPiUgVcj1CG91uco-TeAz07eiwerWu%2BaAC5zVn7F4DWWniYFVg%40mail.gmail.com.


email-extension: using extended email template in a pipeline job by template name

2023-05-22 Thread Mike MBS


Hi,

I asked this question on StackOverflow – but seems there is a lack of 
engagement regarding Jenkins there..so I am asking here as well:

 

I've created a template named 'default_email_template' by going to Manage 
Jenkins -> Editable Email Notification Templates -> Add New Template.   
I've also provided the content for default Recipients,  Subject and Body. I 
now would simply like to have my multiple pipeline job use that template as 
is. the following does not work:

*Code:*

def sendEmail() {

emailext(

  '${SCRIPT, template="default_email_template"}',

  subject: "'Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]'",

)

}

 

*Exception:*

java.lang.IllegalArgumentException: Expected named arguments but got 
[{subject='Job testJob [12]'}, ${SCRIPT, template="default_email_template"}]

at org.jenkinsci.plugins.workflow.cps.DSL.parseArgs(DSL.java:712)

at org.jenkinsci.plugins.workflow.cps.DSL.parseArgs(DSL.java:644)

at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:237)

at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)

at 
org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)

at 
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:47)

at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)

at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

at 
com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)

at WorkflowScript.sendEmail(WorkflowScript:160)

at WorkflowScript.run(WorkflowScript:122)

  

What is the proper way to reference a template created by using this 
extension?  Any help would be appreciated.

 

Thanks much

-- 
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/e1de2635-211f-48d7-aab4-7a4b4f2cff62n%40googlegroups.com.


Re: Signature verification failed in update site

2023-05-22 Thread Samir Kelekar
Worked on a fresh Ubuntu machine while I couldn't really debug what the
problem was. Thanks


On Mon, May 22, 2023, 7:20 AM Mark Waite  wrote:

>
>
> On Sunday, May 21, 2023 at 7:42:07 AM UTC-6 Samir wrote:
>
> When I run jenkins with ZAP plugin, I get the following errors on Build.
>
> I tried changing java.security file and removing MD5 from
> jdk.certpah.disabledAlgorithms,
> Also changed RSA keySize to < 512 as also changed the command line to
> remove
> certificate checking. But nothing helps. Can you please suggest what I
> could be doing wrong?
>
> It used to work all right some time back but this error pops up now.
>
> regards,
> Samir
>
> May 21, 2023 6:29:12 PM hudson.model.UpdateSite updateData
> SEVERE: ERROR: Signature verification failed in update site
> default (show details) style='display:none'>java.security.cert.CertPathValidatorException:
> signature check failed
>
>
> As far as I can tell, that message has no relation to the Zap plugin.
> That is a message from the verifySignature method of
> the  JSONSignatureValidator in Jenkins core that is checking the validity
> of the data received from the Jenkins update center.
>
> Changing Java security settings is unlikely to help with that message.
>
> You may have misconfigured the URL of the Jenkins update center in "Manage
> Jenkins" -> "Plugins" -> "Advanced Settings" in the ""Update Site" field.
> See https://updates.jenkins.io/ for the standard value that should be
> there.
>
> If the URL of the Jenkins update center is configured correctly, then it
> is possible that there is a network device between the Jenkins controller
> and the Jenkins update center that is damaging or blocking the necessary
> data.  The network experts at your organization are probably the best
> people to consult to see if they have a proxy configured or some other form
> of network blocking.
>
> You could enable a system logger from the "System log" page to view the
> logs of the jenkins.util.JSONSignatureValidator class.  The logging
> statements in the source code may help you identify the issue in your local
> enviornment.
>
> Mark Waite
>
> --
> 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/1307fe4b-9643-4aa4-be8a-b4f32567a6dbn%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/CANoiity2ba6%3D%3Df9zw2Dr-hNWEdyffneqOH72WBMxNYNBqgG6dQ%40mail.gmail.com.