Re: Is it possible to lock a pipeline job on jenkins from manual execution

2018-10-22 Thread Konstantin Raskoshnyi
https://www.thegeekstuff.com/2017/03/jenkins-users-groups-roles/

Or you can do per project access

On Mon, Oct 22, 2018 at 3:22 PM Hari Phaneendra  wrote:

> We have a team jenkins server where the jobs are open for anyone to edit
> or run. We have succesfully migrated to jenkinsfiles to ensure the pipeline
> cannot be edited manually without code review. However, there are many
> instances people who are new execute a job manually which was supposed to
> run on a trigger. We would like to make sure that doesnt happen, are there
> any plugins that allow us to configure jobs only to be executed by a
> trigger?
>
> --
> 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/0700bd8e-720d-432d-bc7a-adedf89fd3e8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Is it possible to lock a pipeline job on jenkins from manual execution

2018-10-22 Thread Hari Phaneendra
We have a team jenkins server where the jobs are open for anyone to edit or 
run. We have succesfully migrated to jenkinsfiles to ensure the pipeline 
cannot be edited manually without code review. However, there are many 
instances people who are new execute a job manually which was supposed to 
run on a trigger. We would like to make sure that doesnt happen, are there 
any plugins that allow us to configure jobs only to be executed by a 
trigger?

-- 
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/0700bd8e-720d-432d-bc7a-adedf89fd3e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Completely Host Jenkins build logs on external storage

2018-10-22 Thread red 888


Everything I see is for *backing up* build logs to S3 or other external 
storage locations.


Is there a plug-in for actually hosting build logs on those locations? 
meaning that's just where Jenkins writes to and looks for build logs?


I often replay jobs and like looking at the job history in the Jenkins UI. 
but I don't want to store all of these build logs on the file system. So 
I'm not talking about just backing up. I want the Jenkins UI to read from 
the external storage and be able to replay jobs.


Ideally i could have Jenkins read/write to S3 for build logs. I could also 
mount another voulme just for build logs and point jenkins to it for build 
logs location but prefer to use cloud storage.


This is for master and any slaves

-- 
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/255f9475-fbb1-4792-9b40-83c01c30c4d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Requirements for Jenkins agent in docker container

2018-10-22 Thread Zach LaCelle
Hello,

What does Jenkins need to run jobs in a Docker container? I know that the
jenkinsci/slave Docker image works, but if I want to create a new image
based off of a different origin, what process, environment variables, etc
need to be running?

This would be using the "Docker Attach" methodology, but I assume the list
is similar for SSH (minus the SSH server).

For example, looks like it needs:
* openjdk 8
* a Jenkins user/group
* slave.jar at /usr/share/jenkins/slave.jar
* /home/jenkins/.jenkins
* /home/jenkins/agent
* WORKDIR set to /home/jenkins
* ENV AGENT_WORKDIR set to /home/jenkins/agent

-- 
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/CAJGGFMZ-8Pm35%3DYqyd08qusU1PB7KcgBKo1tktb1RU%2BbkdGhUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jacoco plugin broken after update of Pipeline Maven Integration plugin

2018-10-22 Thread Cyrille Le Clerc
Can you please test the fix to prevent rendering publishing multiple jacoco 
reports in case of Maven multi-module projects with multiple usage of 
jacoco.

https://github.com/jenkinsci/pipeline-maven-plugin/releases/tag/pipeline-maven-3.5.15-beta-3

On Thursday, October 18, 2018 at 11:42:08 PM UTC+2, Cyrille Le Clerc wrote:
>
> Hi,
>
> I described a workaround on 
> https://issues.jenkins-ci.org/browse/JENKINS-54139
>
> Thanks Keith for filling the bug.
>
> Cyrille
>
>
> On Thursday, October 18, 2018 at 10:57:58 AM UTC+2, KeithC wrote:
>>
>> FYI, I created a bug report for this:  
>> https://issues.jenkins-ci.org/browse/JENKINS-54139
>>
>> On Monday, October 1, 2018 at 5:50:31 AM UTC-7, jenkin...@sourco.de 
>> wrote:
>>>
>>> Hello, 
>>>
>>> I recently updated the Pipeline Maven Integration plugin to version 
>>> 3.1.2 (from 3.1). 
>>>
>>> Since then the Jacoco plugin does not work anymore. 
>>> Jacoco (code coverage) trend graphs for all past builds are rendered 
>>> onto every build page making it unreadable and also very long to load. 
>>>
>>> In the Jenkins log I see: 
>>> java.lang.RuntimeException: While reading class directory: 
>>> /var/lib/jenkins/jobs/myproject/branches/main/builds/561/jacoco/classes 
>>> at 
>>> hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:131)
>>>  
>>>
>>> at 
>>> hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137)
>>>  
>>>
>>> at 
>>> hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:110) 
>>> at 
>>> hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:339)
>>>  
>>>
>>> at 
>>> hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:326) 
>>> at 
>>> hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:657) 
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.publishers.JacocoReportPublisher.process(JacocoReportPublisher.java:213)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:118)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$WithMavenStepExecutionCallBack.finished(WithMavenStepExecution.java:1053)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:368)
>>>  
>>>
>>> at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73) 
>>> at 
>>> com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:166) 
>>> at 
>>> com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) 
>>> at 
>>> org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
>>>  
>>>
>>> at 
>>> org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
>>>  
>>>
>>> at 
>>> com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) 
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:182)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
>>>  
>>>
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
>>>  
>>>
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
>>> at 
>>> hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
>>>  
>>>
>>> at 
>>> jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
>>>  
>>>
>>> at 
>>> jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
>>>  
>>>
>>> at 
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
>>> at 
>>> java.util.concurrent.ThreadPoolExecutor.runWor

Re: How to set own status message with github-branch-source-plugin ?

2018-10-22 Thread Viacheslav Dubrovskyi

Thank you, Steven!

22.10.2018 17:41, Steven Foster пишет:
You can set the status on a github multibranch pipeline using 
the https://github.com/jenkinsci/github-scm-trait-notification-context-plugin 

It does not require anything in the scripted pipeline/Jenkinsfile, it 
is added on the multibranch pipeline configuration as a behavior 
(where the branch / PR etc. filter rules are applied).
Press Add and choose "Custom Github Notification Context" and fill in 
the context there.


This will allow you to set one static context message for every 
pipeline created by the multibranch job, it doesn't let you 
dynamically set different messages in the middle of the pipeline.


On Monday, October 22, 2018 at 3:24:52 PM UTC+1, Slava Dubrovskiy wrote:

Hi

I use multibranch pipeline and github-branch-source-plugin. And I
would
like set custom status message in github for commits and branches.

On this page described how to do it

https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc




But I can't understand what command should be in scripted pipeline?

Help me please.

Thank you.

-- 
WBD,

Viacheslav Dubrovskyi


--
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/db4ba4ab-1b5d-4b0b-b7ba-fc9e41d4e788%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
WBD,
Viacheslav Dubrovskyi

--
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/4176e607-6dd0-61cd-9eb6-cf90cef46b5e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Best way to set the job description for multi branch pipelines

2018-10-22 Thread Lee, David
Thanks for the reply.

currentBuild.description = "You description"  sets the build description for 
each build.  I am looking for setting the job/project description.

-D

From: jenkinsci-users@googlegroups.com  On 
Behalf Of Cuong Tran
Sent: Thursday, October 18, 2018 9:47 AM
To: Jenkins Users 
Subject: Re: Best way to set the job description for multi branch pipelines

Try this:

currentBuild.description = "You description"

On Wednesday, October 17, 2018 at 7:39:59 AM UTC-7, Lee, David wrote:
Hi Jenkins users –

I am not seeing a really easy and clean way to set the Jenkins job description 
for multi branch pipelines.

The following code works, however, the downside is 3 in-process script 
approvals are required (method 
org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder$BadgeManager 
getBuild,  field hudson.model.Run project, and method hudson.model.AbstractItem 
setDescription java.lang.String).

def project = manager.build.project
project.setDescription("My job description.")

Am I missing something?  Is there a better way to codify the job description 
into a Jenkinsfile and without requiring any script approvals?   Would I need 
to create a  Jenkins plugin?

Any advice appreciated.  Thanks.
-D


--
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/e446d132-07cd-4dd0-9db0-0dddce1c1a92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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/db6eab829ec748ad9092cbc19a17c76a%40EXCAMB02.rpega.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set own status message with github-branch-source-plugin ?

2018-10-22 Thread Steven Foster
You can set the status on a github multibranch pipeline using 
the https://github.com/jenkinsci/github-scm-trait-notification-context-plugin
It does not require anything in the scripted pipeline/Jenkinsfile, it is 
added on the multibranch pipeline configuration as a behavior (where the 
branch / PR etc. filter rules are applied).
Press Add and choose "Custom Github Notification Context" and fill in the 
context there.

This will allow you to set one static context message for every pipeline 
created by the multibranch job, it doesn't let you dynamically set 
different messages in the middle of the pipeline.

On Monday, October 22, 2018 at 3:24:52 PM UTC+1, Slava Dubrovskiy wrote:
>
> Hi 
>
> I use multibranch pipeline and github-branch-source-plugin. And I would 
> like set custom status message in github for commits and branches. 
>
> On this page described how to do it 
>
> https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc
>  
>
> But I can't understand what command should be in scripted pipeline? 
>
> Help me please. 
>
> Thank you. 
>
> -- 
> WBD, 
> Viacheslav Dubrovskyi 
>
>
>

-- 
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/db4ba4ab-1b5d-4b0b-b7ba-fc9e41d4e788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins scripted pipeline and Active choice plugin

2018-10-22 Thread Slide
>From looking at the source that plugin, I don't think there is currently a
way to do it from pipeline.

On Mon, Oct 22, 2018, 06:20 Konstantin Raskoshnyi 
wrote:

> Hello everyone,
> Is there a way to add active choice input element (multiselect) in
> scripted pipeline?
>
>
> Was trying to do this:
> activeChoiceParam(name: 'choice1', description: 'select your choice',
> choiceType: 'RADIO')
>
> and got this error
>
> [Pipeline] End of Pipelinejava.lang.NoSuchMethodError: No such DSL method 
> 'activeChoiceParam' found among steps [archive, bat, build, catchError, 
> checkout, deleteDir, dir, dockerFingerprintFrom, dockerFingerprintRun, echo, 
> emailext, emailextrecipients, envVarsForTool, error, fileExists, getContext, 
> git, input, isUnix, jiraComment, jiraIssueSelector, jiraSearch, junit, 
> library, libraryResource, load, lock, mail, milestone, node, parallel, 
> powershell, properties, publishHTML, pwd, readFile, readTrusted, resolveScm, 
> retry, script, sh, sleep, stage, stash, step, svn, timeout, timestamps, tm, 
> tool, unarchive, unstash, validateDeclarativePipeline, waitUntil, 
> withContext, withCredentials, withDockerContainer, withDockerRegistry, 
> withDockerServer, withEnv, wrap, writeFile, ws] or symbols [all, allOf, 
> always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, 
> architecture, archiveArtifacts, artifactManager, authorizationMatrix, 
> batchFile, bitbucket, booleanParam, branch, brokenBuildSuspects, 
> brokenTestsSuspects, buildButton, buildDiscarder, buildingTag, 
> caseInsensitive, caseSensitive, certificate, changeRequest, changelog, 
> changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, 
> cloud, command, credentials, cron, crumb, culprits, defaultView, demand, 
> developers, disableConcurrentBuilds, disableResume, docker, dockerCert, 
> dockerfile, downloadSettings, downstream, dumb, durabilityHint, envVars, 
> environment, equals, expression, file, fileParam, filePath, fingerprint, 
> frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, github, 
> githubPush, gradle, headRegexFilter, headWildcardFilter, hyperlink, 
> hyperlinkToModels, inheriting, inheritingGlobal, installSource, 
> isRestartedRun, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobName, label, 
> lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, 
> legacy, legacySCM, list, local, location, logRotator, 
> loggedInUsersCanDoAnything, masterBuild, maven, maven3Mojos, mavenErrors, 
> mavenMojos, mavenWarnings, modernSCM, myView, newContainerPerStage, node, 
> nodeProperties, nonInheriting, nonStoredPasswordParam, none, not, 
> overrideIndexTriggers, paneStatus, parameters, password, pattern, permanent, 
> pipeline-model, pipelineTriggers, plainText, plugin, pollSCM, 
> preserveStashes, projectNamingStrategy, proxy, queueItemAuthenticator, 
> quietPeriod, recipients, remotingCLI, requestor, run, runParam, schedule, 
> scmRetryCount, scriptApprovalLink, search, security, shell, 
> skipDefaultCheckout, skipStagesAfterUnstable, slave, sourceRegexFilter, 
> sourceWildcardFilter, sshUserPrivateKey, stackTrace, standard, status, 
> string, stringParam, swapSpace, tag, text, textParam, tmpSpace, toolLocation, 
> unsecured, upstream, upstreamDevelopers, usernameColonPassword, 
> usernamePassword, viewsTabBar, weather, withAnt, zfs, zip] or globals 
> [currentBuild, docker, env, params, pipeline, scm]
>
>
>
>
> If it's not possible, maybe there's a way to create multiselect with standard 
> pipeline tools?
>
>
>
> Thanks
>
> --
> 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/69503b77-73d2-4753-8f9c-6c9df544a0c7%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPiUgVd62_8Pp46hbzrG8q4Bs%2BS8-WBCPrw9Qd8-Ntvz5O2yDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to set own status message with github-branch-source-plugin ?

2018-10-22 Thread Viacheslav Dubrovskyi

Hi

I use multibranch pipeline and github-branch-source-plugin. And I would 
like set custom status message in github for commits and branches.


On this page described how to do it 
https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc


But I can't understand what command should be in scripted pipeline?

Help me please.

Thank you.

--
WBD,
Viacheslav Dubrovskyi


--
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/a76769a2-d045-b609-a11e-915c299fa9ae%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins scripted pipeline and Active choice plugin

2018-10-22 Thread Konstantin Raskoshnyi
Hello everyone,
Is there a way to add active choice input element (multiselect) in scripted 
pipeline?


Was trying to do this:
activeChoiceParam(name: 'choice1', description: 'select your choice', 
choiceType: 'RADIO')

and got this error

[Pipeline] End of Pipelinejava.lang.NoSuchMethodError: No such DSL method 
'activeChoiceParam' found among steps [archive, bat, build, catchError, 
checkout, deleteDir, dir, dockerFingerprintFrom, dockerFingerprintRun, echo, 
emailext, emailextrecipients, envVarsForTool, error, fileExists, getContext, 
git, input, isUnix, jiraComment, jiraIssueSelector, jiraSearch, junit, library, 
libraryResource, load, lock, mail, milestone, node, parallel, powershell, 
properties, publishHTML, pwd, readFile, readTrusted, resolveScm, retry, script, 
sh, sleep, stage, stash, step, svn, timeout, timestamps, tm, tool, unarchive, 
unstash, validateDeclarativePipeline, waitUntil, withContext, withCredentials, 
withDockerContainer, withDockerRegistry, withDockerServer, withEnv, wrap, 
writeFile, ws] or symbols [all, allOf, always, ant, antFromApache, antOutcome, 
antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, 
artifactManager, authorizationMatrix, batchFile, bitbucket, booleanParam, 
branch, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDiscarder, 
buildingTag, caseInsensitive, caseSensitive, certificate, changeRequest, 
changelog, changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, 
clock, cloud, command, credentials, cron, crumb, culprits, defaultView, demand, 
developers, disableConcurrentBuilds, disableResume, docker, dockerCert, 
dockerfile, downloadSettings, downstream, dumb, durabilityHint, envVars, 
environment, equals, expression, file, fileParam, filePath, fingerprint, 
frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, github, 
githubPush, gradle, headRegexFilter, headWildcardFilter, hyperlink, 
hyperlinkToModels, inheriting, inheritingGlobal, installSource, isRestartedRun, 
jdk, jdkInstaller, jgit, jgitapache, jnlp, jobName, label, lastDuration, 
lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, 
legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, 
masterBuild, maven, maven3Mojos, mavenErrors, mavenMojos, mavenWarnings, 
modernSCM, myView, newContainerPerStage, node, nodeProperties, nonInheriting, 
nonStoredPasswordParam, none, not, overrideIndexTriggers, paneStatus, 
parameters, password, pattern, permanent, pipeline-model, pipelineTriggers, 
plainText, plugin, pollSCM, preserveStashes, projectNamingStrategy, proxy, 
queueItemAuthenticator, quietPeriod, recipients, remotingCLI, requestor, run, 
runParam, schedule, scmRetryCount, scriptApprovalLink, search, security, shell, 
skipDefaultCheckout, skipStagesAfterUnstable, slave, sourceRegexFilter, 
sourceWildcardFilter, sshUserPrivateKey, stackTrace, standard, status, string, 
stringParam, swapSpace, tag, text, textParam, tmpSpace, toolLocation, 
unsecured, upstream, upstreamDevelopers, usernameColonPassword, 
usernamePassword, viewsTabBar, weather, withAnt, zfs, zip] or globals 
[currentBuild, docker, env, params, pipeline, scm]




If it's not possible, maybe there's a way to create multiselect with standard 
pipeline tools?



Thanks

-- 
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/69503b77-73d2-4753-8f9c-6c9df544a0c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploy non-Java (C++ DLL) to artifactory

2018-10-22 Thread John Mellor
On Mon, 2018-10-22 at 12:00 +0200, Jonathan Bergh wrote:
We have a problem where we are trying to deploy non-Java artifacts to 
Artifactory for inclusion in a Java application install.

We are using Jenkins and Gradle for the CI system, and the gradle 'cpp' plugin 
to build the C++ libraries for the project.

Having gotten the following message (and not DLL's deployed), we have included 
the Maven gradle plugin (and are also manually creating a POM) but we think the 
Maven 'install' task is missing because we are running this together with the 
'cpp' plugin.

Does anyone know if this is the correct dianogsis and if so, whether there is a 
workaround for this? Or perhaps we are doing it entirely incorrectly?

You do not specify which version of Artifactory you are using. The free version 
does not store anything other than jars and tars. Artifactory wants big $$ for 
more than that.

-- 
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/9bf93cdab7602c91bfe6c7e11ef3440674b43f56.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


Not able to integrate with Nexus repo manager

2018-10-22 Thread Vowner
Hi team,

we newly setup jenkins (2.138.1) and nexus (Sonatype Nexus Repository 
ManagerOSS 3.14.0-04) in same server for now and tried to integrate jenkins 
with nexus by using the nexus-jenkins plugin. 

We have integrated LDAp authentication for both nexus and jenkins as well.

But when i tried to integrate jenkins and nexus by the nexus-jenkins plugin 
getting below error, here i tried with both the local and ldap jnexus admin 
ids and still failing. please guide me here.

Nexus Repository Manager 2.x connection failed 

org.apache.http.client.HttpResponseException: Not Found
at com.sonatype.nexus.api.cx.a(SourceFile:41)
at com.sonatype.nexus.api.cx.handleResponse(SourceFile:24)
at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
at com.sonatype.nexus.api.cw.getRepositoryList(SourceFile:64)
Caused: com.sonatype.nexus.api.exception.RepositoryManagerException: Could not 
retrieve list of repositories
at com.sonatype.nexus.api.cw.getRepositoryList(SourceFile:68)
at 
com.sonatype.nexus.api.repository.RepositoryManagerClient$getRepositoryList.call(Unknown
 Source)
at 
com.sonatype.nexus.ci.util.NxrmUtil.getApplicableRepositories(NxrmUtil.groovy:59)
at 
com.sonatype.nexus.ci.util.NxrmUtil$getApplicableRepositories.call(Unknown 
Source)
at 
com.sonatype.nexus.ci.config.Nxrm2Configuration$DescriptorImpl.doVerifyCredentials(Nxrm2Configuration.groovy:92)
at 
java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at 
hudson.security.ChainedServletFilter$1.doFilter(C

RE: Why is Jenkins suddenly telling me about an old security vulnerability

2018-10-22 Thread matthew.web...@diamond.ac.uk
Thanks for the advice.
It turns out this was caused by an explicit change made by someone to the 
config (the administrative monitor was re-enabled).
 
> -Original Message-
> From: jenkinsci-users@googlegroups.com  us...@googlegroups.com> On Behalf Of Daniel Beck
> Sent: 19 October 2018 18:02
> To: Jenkins Users 
> Subject: Re: Why is Jenkins suddenly telling me about an old security
> vulnerability
> 
> This is supposed to only show when Jenkins detects an upgrade from 1.495 or
> older. IIRC, it uses information from the global config.xml to determine that.
> Any scripting messing with this file could be a possible culprit.
> 
> I recommend not executing this. I'm not sure whether the format of secrets we
> implemented ~2 years ago is still compatible with the re-keying.
> 
> > On 19. Oct 2018, at 18:26, matthew.web...@diamond.ac.uk wrote:
> >
> > We recently upgraded Jenkins from 2.146 to 2.147 (which is the newest
> release at the time of writing).
> >
> > Since then, Jenkins has displayed a message in the WebUI:
> > "Because of a security vulnerability discovered earlier, we need to change 
> > the
> encryption key used to protect secrets in your configuration files on the 
> disk.
> This process scans a large portion of your $JENKINS_HOME, find encrypted
> data, re-key them, which will take some time. See this document for more
> implications about different ways of doing this (or not doing this.)"
> >
> > The message links to a 5-year old web page
> https://jenkins.io/security/advisory/2013-01-04/. This is strange, since at 
> the
> time of the original security advisory, I followed the steps as instructed. 
> I'm not
> just relying on memory here - I verified the
> $JENKINS_HOME/jenkins.security.RekeySecretAdminMonitor exists, meaning
> that the remediation action was followed back in 2013.
> >
> > Questions:
> > (1) Has anyone else seen this after upgrading to 2.147?
> > (2) Does anyone have any ideas what could have caused this?
> >
> > Thanks
> > Matthew
> >


-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-- 
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/168d218b3edb4309bd342d3c3cf747d1%40Diamond.ac.uk.
For more options, visit https://groups.google.com/d/optout.


Intermittently get "no valid crumb was included in the request" when using Jenkins through the web browser

2018-10-22 Thread Jordan Soet
I regularly get the error "no valid crumb was included in the request" when 
I'm using Jenkins through the web browser. This can usually be worked 
around by going back, making the same changes again, then hitting save 
again, but this is obviously annoying if I'm making any larger changes to a 
job and then I happen to hit this error, as sometimes I'll forget exactly 
what I just changed. Also, sometimes the second time (or 3rd time) it also 
fails, but eventually it will always work. This happens when I'm regularly 
using Jenkins, it's not a case that I leave the window open for a while and 
then try and use the same session.

Anyway, when I google for this error I just get lots of results about 
people who are trying to use Jenkins API, and such, but I'm just trying to 
use Jenkins through the web interface, so I don't think I should get this 
error. Is there something that I maybe have misconfigured on my jenkins 
instance? Is there anything I can look into to see why I'm getting this 
error?

-- 
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/758dfe47-8fb4-4175-8477-80fd29d2b456%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


deploy non-Java (C++ DLL) to artifactory

2018-10-22 Thread Jonathan Bergh
hi there,

We have a problem where we are trying to deploy non-Java artifacts to
Artifactory for inclusion in a Java application install.

We are using Jenkins and Gradle for the CI system, and the gradle 'cpp'
plugin to build the C++ libraries for the project.

Having gotten the following message (and not DLL's deployed), we have
included the Maven gradle plugin (and are also manually creating a POM) but
we think the Maven 'install' task is missing because we are running this
together with the 'cpp' plugin.

Does anyone know if this is the correct dianogsis and if so, whether there
is a workaround for this? Or perhaps we are doing it entirely incorrectly?

Many thanks in advance for any advice,
Regards
Jonathan

-- 
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/CA%2BMPq%3DUO0eXwPp2FEPPXcSSH5BTBDP2_QikhSwTrk-GLvLv_SQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.