Re: [Question] Evaluate env var in text box to populate drop down list

2017-04-13 Thread Joseph P
I would discourage against trying to grab something from slave nodes, how 
do you determine the right node? You can traverse all nodes but that seems 
a little over the top.
The two github links are examples of how to get a listener, and node (in 
this case Jenkins.instance can be casted to node) to access either files or 
command line tools or whatever have you.

Den torsdag den 13. april 2017 kl. 01.09.22 UTC+2 skrev JordanGS:
>
> You say odd stuff, but then that would make it possible? Do you have an 
> example i can look at maybe?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/aa5b90f0-b853-4853-a3e9-d9f89980047b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Serialization Error

2017-04-13 Thread Oleg Nenashev
Hi,

   - Generic Jelly documentation:
   http://commons.apache.org/proper/commons-jelly/
   - Docs in Jenkins:
  -
  
https://wiki.jenkins-ci.org/display/JENKINS/Basic+guide+to+Jelly+usage+in+Jenkins
  - https://wiki.jenkins-ci.org/display/JENKINS/Understanding+Jelly+Tags
  - https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls
  - There was also a taglib site, but it is down now. BTW you can still
  generate it by running "mvn site" in the Jenkins core repo
   - JavaScript and Jelly examples (googleable by 

Development Question Build action vs Post Build action

2017-04-13 Thread JordanGS
We have a build step that run an application, does a bunch of stuff, 
generates some reports and outputs a bunch of data to the console.

The final report / information available during the build step is the list 
of all issues/alerts found. The application scans a given website for 
security issues and flags when with various alert levels (High, Med, Low)

So let's say that during the build step, 5 High level issues were found, 20 
medium and 300 low. How do we now make this information available to a post 
build action? Can it even see that information?

The goal of the post build action is a threshold system, where the user 
defines the upper bound for each level. So if the users says 3 is the max 
number of highs, and there are 5 in total. Then the build will result in a 
failure.

But at the moment, we don't know about the 5 from the build step, how do we 
exchange information between the build step and the post build step. Any 
example or guidance would be greatly appreciated. Is it even possible for 
the Build step to send information to the post build step?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/d30b2b8d-5b29-4b20-bb01-c7341825b351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Development Question Build action vs Post Build action

2017-04-13 Thread JordanGS
I have a build step that run an application, does a bunch of stuff, 
generates some reports and outputs a bunch of data to the console.

The final report / information available during the build step is the list 
of all issues/alerts found. The application scans a given website for 
security issues and flags when with various alert levels (High, Med, Low)

So let's say that during the build step, 5 High level issues were found, 20 
medium and 300 low. How do i now make this information available to a post 
build action? Can it even see that information?

The goal of the post build action is a threshold system, where the user 
defines the upper bound for each level. So if the users says 3 is the max 
number of highs, and there are 5 in total. Then the build will result in a 
failure.

But at the moment, i don't know about the 5 from the build step, how do i 
exchange information between the build step and the post build step. Any 
example or guidance would be greatly appreciated. Is it even possible for 
the Build step to send information to the post build step?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b2fcd1ef-d9d6-46d1-9e19-7b87fbe518b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Development Question Build action vs Post Build action

2017-04-13 Thread JordanGS
Per IRC discussion, i was refereed to: Actions 


"add an action in your build step (thinking about what it means when there 
is already one, same build step twice, and how to handle that), then check 
for an action of that type in the post-build step"

"in perform(…) of the build step: build.addAction(new MyAction()) ; then in 
perform(…) of the publisher: build.getAction(MyAction.class)"

Requires more investigation and an attempt to get working, will update if i 
run into issues. Thanks Daniel :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/02140d3b-d378-4a58-8f1a-89d2b010b4fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there a script that check that some users got overlapping permissions in jenkins?

2017-04-13 Thread Luc Ibata
Is there a script that check that some users got overlapping permissions in 
jenkins?

In order to prove that a team is not seeing another team jobs or folders I 
need to come up with a measurable solution that validate that.How can I 
test that each team member don't see each other jobs? Because using the UI 
to see and comparing with my eyes becomes really difficult with multiple of 
groups or users for instance.

I am using Jenkins Project-based matrix plugin and latest Jenkins. 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/2328b09d-c475-41cc-8a85-3dbc77aa4ee0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Make Jenkins aware of not top level views

2017-04-13 Thread Marcin Zajączkowski
I created a PR changing the things:
https://github.com/jenkinsci/jenkins/pull/2831

Please make a review if you are interested in having it in.

Marcin


On Friday, December 23, 2016 at 3:40:08 PM UTC+1, Marcin Zajączkowski wrote:
>
> Hi,
>
> I'm trying to make Delivery Pipeline views searchable [1]. After some code 
> browsing and debugging I know that DeliveryPipelineView is perfectly 
> searchable, but only if it is a top level view (then it is load from the 
> config.xml and is available in a Jenkins.views field). However, when it is 
> a part a NestedView despite being in the config.xml it is ignored (probably 
> during the unmarshalling) and not added to the views. As a result to make 
> it searchable it is required to get onto that view via UI which is not the 
> most convenient option :).
>
> In a case of Folder it works as it is declared as TopLevelItem, but I'm 
> not sure if it would be the best existing solution for Delivery Pipeline 
> views.
>
>
> Question. How to make Jenkins aware of not top level views (here Delivery 
> Pipeline views, but optionally also NestedViews itslef) in Jenkins.views 
> field to be able to use feaures such as searching with 
> SearchableModelObject and/or QuickSilver?
>
> Question 2. How do you predict an impact on performance (on the other hand 
> all TopLevelItems are already known by Jenkins)?
>
> [1] - https://groups.google.com/forum/#!topic/jenkinsci-dev/G7b5AK9lF6g
>
> Marcin
>
> -- 
> http://blog.solidsoft.info - Solid Soft - Working code is not enough
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/23cb55a2-c7ce-4787-89fa-a0ddde84c4d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Serialization Error

2017-04-13 Thread JordanGS
Oleg, thank you so much. Especially for "Understanding Jelly Tags", the 
GitHub repository linked in there is incredibly useful. I'll be learning 
the plugins you linked and looking at them very carefully.

I have one question though. If you look at: 
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/form/optionalBlock.jelly

i can see all the attributes the tag has. This is a checkbox that can be 
expanded/collapsed however it requires the inline tag to be set, otherwise 
the data is inaccessible and a error is thrown. If the inline tag is set 
then every time you set the checked state to true, the job config window 
annoyingly scrolls all the way down. I'm not sure if this is a bug with 
inline or intended functionality. But my question is, how do i find out 
what the proper usage for these tags is. Like in this case, i'm assuming i 
need a new class specifically for that optional block with it's own data 
bound constructor.

   1. So then what is that class supposed to look like
   2. how do i access the values from another class
   3. will this change result in version incompatibility in a plugin

Thank you +1

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/f17f9bb6-d5e8-4311-899d-19babb259a4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Question] Evaluate env var in text box to populate drop down list

2017-04-13 Thread JordanGS
Fair point, i'll leave it alone. Thanks :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/61879bdd-0a73-493c-88a2-54e53511919a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trouble with long workspace names

2017-04-13 Thread Brian Powell
I have been running into an issue that looks like it has been brought up 
before (https://issues.jenkins-ci.org/browse/JENKINS-38706). I am running 
Jenkins my Jenkins master and clients on Server 2012, and when Jenkins 
creates the workspaces it attaches a long string to the name ( ie. 
game-of-life-demo_master-FUA2SINOGRGRQSUALNXIZZS4LYTKWGDSYAC5B6HOU4LGPRCODDHA) 
, which causes my build to fail in MSBUILD bc of the character limit. Has 
anyone run into or successfully resolved this in a Windows environment? Any 
direction would be great, thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/80456645-6dec-402e-9921-c4569bb61125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.