Re: Jenkins JSON API

2023-04-16 Thread selvavi...@gmail.com
Thanks for the update.
Can you please let me Is it possible to get permission to start a build, 
stop/cancel a build
and able to create new job from Jenkins API? Kindly assist

On Monday, April 17, 2023 at 2:30:16 AM UTC+5:30 ullrich...@gmail.com wrote:

> No, this is not possible. 
>
>
> Am 16.04.2023 um 16:16 schrieb selvavi...@gmail.com  >:
>
> Hi,
> I have below doubts on Jenkins JSON based API,
> 1) Is it possible to apply filter on Jenkins Jobs API, like fetch success 
> build alone or fetch build take more than 2ms 
> 2) is it possible to fetch Builds which are triggered only by particular 
> User.
>
> Can anyone assist on this.
> Thanks in advance.
>
> -- 
> 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-de...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/8fb8001a-d03e-49ff-b8ba-dc29c1cdcb96n%40googlegroups.com
>  
> 
> .
>
>
>

-- 
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/d226fde8-17a7-4414-9548-0a82c1c5a965n%40googlegroups.com.


Re: Jenkins JSON API

2023-04-16 Thread Ullrich Hafner
No, this is not possible. 


> Am 16.04.2023 um 16:16 schrieb selvavi...@gmail.com 
> :
> 
> Hi,
> I have below doubts on Jenkins JSON based API,
> 1) Is it possible to apply filter on Jenkins Jobs API, like fetch success 
> build alone or fetch build take more than 2ms 
> 2) is it possible to fetch Builds which are triggered only by particular User.
> 
> Can anyone assist on this.
> Thanks in advance.
> 
> -- 
> 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/8fb8001a-d03e-49ff-b8ba-dc29c1cdcb96n%40googlegroups.com
>  
> .

-- 
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/87D996DF-5090-4208-A5BD-B921517D80E6%40gmail.com.


Jenkins JSON API

2023-04-16 Thread selvavi...@gmail.com
Hi,
I have below doubts on Jenkins JSON based API,
1) Is it possible to apply filter on Jenkins Jobs API, like fetch success 
build alone or fetch build take more than 2ms 
2) is it possible to fetch Builds which are triggered only by particular 
User.

Can anyone assist on this.
Thanks in advance.

-- 
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/8fb8001a-d03e-49ff-b8ba-dc29c1cdcb96n%40googlegroups.com.


Re: How to retrieve sensitive data in Jenkins agent node

2023-04-16 Thread Dennis Gu


 
 
  
   Hi Jesse:
   
  
  
   Thank you for your quick reply, very helpful information!
   
  
  
   Dennis
   
  
  
   
On 04/13/2023 2:34 PM 'Jesse Glick' via Jenkins Developers  wrote:
   
   

   
   

   
   

 
  On Thu, Apr 13, 2023 at 12:55 PM d...@kinneartech.com  wrote:
  
 
 
  
   How can we pass those sensitive args to Jenkins agent machine without getting disclosed. We already tried adding them to envVars but there seems to be an issue that the envVars are disclosed in a parallel job in a different workspace when using some commands to print them.
  
 
 
  
 
 
  This is pretty vague. Disclosed how, to whom? Which commands?
 
 
  
 
 
  https://javadoc.jenkins.io/plugin/credentials-binding/org/jenkinsci/plugins/credentialsbinding/masking/SecretPatterns.html can be used to mask secrets which may be bound in environment variables in scope (for example via https://javadoc.jenkins.io/plugin/workflow-step-api/org/jenkinsci/plugins/workflow/steps/EnvironmentExpander.html) though it is better to have users run the standard `withCredentials` step instead.
 
 
  
 
 
  Anyway
 
 
  
 
 
  
   a parallel job in a different workspace
  
 
 
  
 
 
  would one way or another likely have access to any secrets actively in use by an executor on the same agent machine used by another build: it is not straightforward to create a strict separation between two processes running on the same machine, under the same user account. (Any secrets written to a temporary file would trivially be visible to any other builds, secrets bound to environment variables in other processes can be seen in `/proc/*/environ` on Linux, and even secrets solely present inside a JVM can by default be accessed using the Java Attach API.) If there is any possibility that different projects might be owned by different teams who do not trust one another, then you must reserve an agent for the exclusive use of a single build, preferably using “one-shot” provisioning in containers or VMs.
  
 

   
   -- 
   You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
   To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/prxhesWPQwg/unsubscribe.
   To unsubscribe from this group and all its topics, 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/CANfRfr1%3D%3Drno-OoACrA6xcqhYSr2MqTpg%2BaJsAUcSG48kSY3kA%40mail.gmail.com.
   
  
 




-- 
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/736562258.38.1681650987129%40webmail.hostway.com.