Re: Generate API Token does not display token to user.

2019-08-30 Thread Philip Mason

>
> Identified a problem with the Permissive Script Security plugin version 0.5.
>
> This was the cause of the problem.   Rolling back the plugin to version 
0.3 solved the issue.

- - - Philip
 

-- 
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/96180a85-6d97-4a16-bcff-4e36cf79823d%40googlegroups.com.


how to ignore jenkisnfile from polling for pipeline jobs

2019-08-30 Thread SADHAN
Currently i use Jenkins dsl pipelines for my jobs.
This is the current format:

bitbucket projects:

application projects-> application repos -> source code
devops projects->cicd repo ->jenkinsfile and property file.

jobs: dev,qa,uat,stage,prod

All the above jobs are pipeline jobs, they checkout Jenkinsfile from CICD 
Repository and does the tasks.
For all environments we have single jenkinsfile.

for dev job, we have to add scm poll of 15 mins so that the job gets 
triggered if the source code changes.

the problem i am seeing is if i add polling for the source code repo using 
checkout function of jenkinsfile, the job is getting triggered for the 
source code changes and also for the jenkisnfiles changes though both are 
in different Repos.
How do we avoid the polling for jenkisnfiles.

I tried to add "ignore from user" but it dint work, i tried to add "ignore 
from paths" it also dint work.

-- 
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/23823997-06af-42a0-8957-7456d0b668d7%40googlegroups.com.


Re: Combining periodic SCM check with building individual commits

2019-08-30 Thread 'Mark Raynsford' via Jenkins Users
On 2019-08-28T14:22:12 -0400
Mark Waite  wrote:

> You're using a relatively special case.  The git plugin does not support it
> directly.
> 
> You might consider splitting the task into two Jenkins jobs:
> 
>1. Job that takes a SHA-1 as a parameter that should be built, but never
>polls the repository
>2. Job that detects changes on the remote repository and runs a script
>that computes the list of changes since the last run, then launches the job
>defined step 1 with each of the SHA-1 values that have arrived since the
>last run

That's a shame, I was under the impression that what I was doing was
pretty standard. Launching a second job makes sense though, and will be
useful for other reasons.

-- 
Mark Raynsford | http://www.io7m.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/20190830173706.78e5e989%40almond.int.arc7.info.


pgpmbtjaZDv86.pgp
Description: OpenPGP digital signature


Re: Jenkins Ignore Committer Strategy Plugin and job DSL

2019-08-30 Thread SathyaNarayanan Kumaraswamy
Hi Neil;

I'm trying to use below block in my multibranchpipeline generator under 
branchsources using job-dsl
After building generator job upon checking on project config could see 
Build Strategy nothing but just an ADD button

Even I tried with ignoredAuthors.add and ignoreCommitterStrategy.add but 
didnt work out.
Interested to know how to resolve this issue

buildStrategies {
  ignoreCommitterStrategy {
  ignoredAuthors("sathya")
  allowBuildIfNotExcludedAuthor(true)
  }
  }

Thanks,
SathyaNarayanan.K

On Thursday, November 22, 2018 at 5:54:57 PM UTC+8, Neil T wrote:
>
> Thanks Victor! I will try this out. 
> Cheers,
>
> Neil
>
>
> On Wed, 21 Nov 2018 at 19:23, Victor Martinez  > wrote:
>
>> You might need to refer to the trais sections in the branchSource
>>
>> - 
>> /plugin/job-dsl/api-viewer/index.html#path/multibranchPipelineJob-branchSources-branchSource-source-git-traits-headWildcardFilter
>>
>> multibranchPipelineJob(buildName) {
>> ...
>>
>> branchSources {
>> branchSource {
>>   source {
>> git {
>>   remote()
>>   traits {
>>  headWildcardFilter {
>> includes('master* branch1')
>> excludes('')
>>  }
>>   }
>> }
>>   }
>>   buildStrategies {
>>   ignoreCommitterStrategy {
>>   ignoredAuthors("j...@foo.com ")
>>   allowBuildIfNotExcludedAuthor(true)
>>   }
>>   }
>> }
>> }
>> }
>>
>>
>> Cheers
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jenkinsci-users/ZjBFRPAbilE/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/b17f6482-6a7e-4d16-b697-9f0f7cd085cb%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/c740153e-80f0-46a2-8d5e-4e2efd319071%40googlegroups.com.


how to use GraphListener.Synchronous in a Jenkins scripted pipeline

2019-08-30 Thread 'monger_39' via Jenkins Users
Hi,I have a Jenkins scripted pipeline having quite a lot of parallel stages and 
steps.I am looking for a way to find the link to the exact location of the 
workspace directory 
that is created for every stage, within the pipeline code itself.I know that 
there is some (seemingly random) ID as part of the link. 

   http://localhost:9090/job/pipe_workspaces/47/execution/node/20/ws/
Here the 47 is my buildnr, the 20 is the magic ID. This ID apparently changes 
when thescript is modified, or when the job is scheduled somewhat differently.
As discussed under JENKINS-26138 
(https://issues.jenkins-ci.org/browse/JENKINS-26138), thereno standard way to 
get this ID within the pipeline stages of the job.
>From a response at    
>https://stackoverflow.com/questions/47569922/determine-failed-stage-in-jenkins-scripted-pipeline?rq=1
I gather that it would be possible to get the ID using the mentioned 
GraphListener.

But after experimenting a lot with that, it does not seem like my listener is 
receiving any events.I have not been able to find any example of actually using 
the listener within a Jenkinsfile, andaccessing the data of an event.
Does anyone have some code to share ?
thx Monger39



-- 
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/568341671.305301.1567168142551%40mail.yahoo.com.


SVN

2019-08-30 Thread Anetta van der Walt
Hey,

We have a svn repository which is linked with another repository. When we 
check the repository out it exclude the linked files. Is there a way to 
check out also the files from the other repository?

Regards
Anetta

-- 
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/677a5f19-22cc-429d-8e18-dc05b4ef1c1a%40googlegroups.com.