Re: Secure Jenkins URL

2019-10-18 Thread Simon Richter
Hi, On 16.10.19 17:03, Veera Mani wrote: > How to setup the jenkins URL  to https? > I am looking to use the jenkins  tool in internal network , but still  > would like to have it  secure ? It can be done, but it is a major hassle to set up: - the certificate needs to be generated and signed e

Re: Whats is the format for custom pipeline library help files?

2019-10-18 Thread Martin d'Anjou
Thank you Mark, this is a good set of examples. But :-( it does not work. The markup is rendered verbatim, that is, it is treated as a plain text file. And even when I add the jenkins-infra/pipeline-library to my jenkins instance, it shows the help files as text, there is no rendering of the ma

Re: Whats is the format for custom pipeline library help files?

2019-10-18 Thread Mark Waite
https://github.com/jenkins-infra/pipeline-library/tree/master/vars seems to include HTML markup in the txt file. For example, runATH.txt starts with: Runs the Acceptance Test Harness in a configurable way On Fri, Oct 18, 2019 at 4:03 PM Martin d'Anjou wrote: > Hello, > > We can write d

Whats is the format for custom pipeline library help files?

2019-10-18 Thread Martin d'Anjou
Hello, We can write documentation for pipeline library in files like vars/foo.txt and resource/org/foo/bar.json, but I would like to know what format and markups are supported. I found the help for the docker pipeline plugin, but it's written in jelly

Re: How to configure Jenkins 2.190.1 to use TLS 1.2?

2019-10-18 Thread Giles
Unfortunately, that's a huge question. Or a really simple one, depending on if you've done it before. We use Nginx with TLS as the front-end for many services and plain HTML websites at my work, so putting Jenkins behind Nginx/TLS was just like putting any other service behind Nginx/TLS - per

Re: Query on Jenkins pipeline Stash/Unstash

2019-10-18 Thread Ivan Fernandez Calvo
IIRC they are stored on the build directory of the job -- 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 thi

Re: Query on Jenkins pipeline Stash/Unstash

2019-10-18 Thread alok kumar
Thanks for the quick reply Ivan. I understand that it's temporal data..but where is it stored...on the master? What is the path? Thanks Alok On Fri., Oct. 18, 2019, 12:52 Ivan Fernandez Calvo, wrote: > Hi, > > Stash/unstash is use to store temporal data that lives while the build is > running,

Re: In a pipeline, how to check if a Jenkins item is a folder?

2019-10-18 Thread Ivan Fernandez Calvo
See https://github.com/cloudbees/jenkins-scripts/blob/master/findStaleFolders.groovy if you make it from a pipeline you would need to approve a bunch of methods in the script approval, also you probably need to use the @NonCPS see https://wiki.jenkins.io/plugins/servlet/mobile?contentId=1752112

Query on Jenkins pipeline Stash/Unstash

2019-10-18 Thread Ivan Fernandez Calvo
Hi, Stash/unstash is use to store temporal data that lives while the build is running, you can keep those stash after the build, but if you want to get some file after the build it is better to use the archive step, it put files on artifacts section -- You received this message because you ar

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread drpm
I tried this one but the pod still got terminated. def label = "jenkins-test-build-${UUID.randomUUID().toString()}" podTemplate(label: label, *activeDeadlineSeconds: 3600,* yaml: """ apiVersion: v1 kind: Pod metadata: labels: slave: jenkins-slave-testing-build spec: containers:

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread Carlos Sanchez
Ah ok, for that one you need to set it at podTemplate level, not inside the yaml On Fri, Oct 18, 2019, 11:38 drpm wrote: > Hello, > > Thank you for your reply. > > It says here (https://github.com/jenkinsci/kubernetes-plugin) that pod > will be deleted after the set activeDeadlineSeconds is pas

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread drpm
Hello, Thank you for your reply. It says here (https://github.com/jenkinsci/kubernetes-plugin) that pod will be deleted after the set activeDeadlineSeconds is passed or am I totally reading it wrong? - podRetention Controls the behavior of keeping slave pods. Can be 'never()', 'onFai

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread Carlos Sanchez
the plugin will delete the kubernetes pod after the jenkins job is completed Also I don't think activeDeadlineSeconds is what you want activeDeadlineSeconds: Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed a

Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread drpm
Hello, For some reason, jenkins is not honoring *activeDeadlineSeconds* parameter when used in pipeline script. I'm using this kubernetes plugin for jenkins: https://wiki.jenkins.io/display/JENKINS/Kubernetes+Plugin *Sample Pipeline Script*: def label = "jenkins-test-build-${UUID.randomUUID