Automatic trigger not happening after the Jenkins webhook change change

2021-09-16 Thread 'Venkat' via Jenkins Users
Hi Team,

I have recently migrated from Bit bucket to Git Hub and I have replaced the
existing Jenkins pipeline bitbucket webhooks with the git hub webhooks.

But when I push the code the pipeline is not getting triggered on Jenkins
until I manually trigger the pipeline for the first time. Can someone
provide a solution for this as I have 100's for pipelines and I will not be
able to trigger them manually?

I have also restarted the Jenkins but still no luck there.

-- 
Thanks & Regards

Venkat

-- 
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/CAF-cHwxzEB6hLLPQBADYP9_4FUocvBaVDCM_cKngH0KG_0H8%3Dg%40mail.gmail.com.


Re: Can vars scripts reference variables defined in a higher scope?

2021-09-16 Thread David Karr
I've managed to implement something that is effectively the same.  I 
realized that I can define a class in "src" that is just a static data 
container and can be accessed from any of the "vars" scripts.

On Thursday, September 16, 2021 at 1:21:10 PM UTC-7 David Karr wrote:

>
> I work on a somewhat complicated build process using Jenkins scripted 
> pipeline, where the Jenkinsfile is very small, but it imports a large 
> shared library, sets some application-specific properties, and then calls a 
> top-level function in the "vars" section of the shared library.
>
> The top-level function is pretty complicated, and it calls a bunch of 
> other "var" functions.  Data is passed to those functions through "env." 
> vars, and function parameters.
>
> I am working on some changes to one of the lower-level functions, where it 
> will reference a couple of "statically-defined" map objects that specify 
> some metadata about build steps.
>
> Initially, I simply defined those maps inside the "call()" function in the 
> "vars" file.  That does work.  However, I see that there is more than one 
> "vars" file that needs to reference those maps.
>
> It would make sense if I could move these map definitions to the top-level 
> "vars" file, I assume right inside the "call()" function (or somewhere 
> else, if that makes sense) and then reference them inside the "vars" 
> functions that need that data.
>
> If these were scalar values, I would just set "env. = 
> " in the top-level "vars" file, inside the "call()" function, and 
> then reference that environment variable in the lower-level "vars" file.  
> Can I set a Map object into environment variables?  I wouldn't think it 
> would allow that.
>
> I technically could simply reference the variable name in the top-level 
> "vars" function, and pass it down through the layers, but that gets messy.  
> I'd prefer to reference these maps like "static" variables (conceptually if 
> not in actuality) in the lower-level "vars" file.
>
> I have browsed the documentation, but I haven't seen an obvious way to do 
> this.
>

-- 
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/222db998-b989-4528-afc8-c2c8e16152c7n%40googlegroups.com.


Can vars scripts reference variables defined in a higher scope?

2021-09-16 Thread David Karr

I work on a somewhat complicated build process using Jenkins scripted 
pipeline, where the Jenkinsfile is very small, but it imports a large 
shared library, sets some application-specific properties, and then calls a 
top-level function in the "vars" section of the shared library.

The top-level function is pretty complicated, and it calls a bunch of other 
"var" functions.  Data is passed to those functions through "env." vars, 
and function parameters.

I am working on some changes to one of the lower-level functions, where it 
will reference a couple of "statically-defined" map objects that specify 
some metadata about build steps.

Initially, I simply defined those maps inside the "call()" function in the 
"vars" file.  That does work.  However, I see that there is more than one 
"vars" file that needs to reference those maps.

It would make sense if I could move these map definitions to the top-level 
"vars" file, I assume right inside the "call()" function (or somewhere 
else, if that makes sense) and then reference them inside the "vars" 
functions that need that data.

If these were scalar values, I would just set "env. = 
" in the top-level "vars" file, inside the "call()" function, and 
then reference that environment variable in the lower-level "vars" file.  
Can I set a Map object into environment variables?  I wouldn't think it 
would allow that.

I technically could simply reference the variable name in the top-level 
"vars" function, and pass it down through the layers, but that gets messy.  
I'd prefer to reference these maps like "static" variables (conceptually if 
not in actuality) in the lower-level "vars" file.

I have browsed the documentation, but I haven't seen an obvious way to do 
this.

-- 
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/181c2122-ddad-4f88-9f01-018cc89f64b6n%40googlegroups.com.


Could not create or change to directory. Directory [webapp]]

2021-09-16 Thread Ram R
Hi Guys, 

Unable to copy jenkins artifacts from Jenkins jobs to Docker host, getting 
below error. I have google but not getting solution. Error is below. 

SSH: Connected SSH: cd [/home] SSH: OK SSH: cd [/home] SSH: OK SSH: mkdir 
[webapp] SSH: FAILED: Message [Permission denied] SSH: Disconnecting 
configuration [docker host] ... ERROR: Exception when publishing, exception 
message [Could not create or change to directory. Directory [webapp]] Build 
step 'Send build artifacts over SSH' changed build result to UNSTABLE 
Finished: UNSTABLE


-- 
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/6a09ebdc-b1ad-4782-9537-10f44c753f9cn%40googlegroups.com.


RE: How to hide/remove some tags from Jenkins builds?

2021-09-16 Thread gmaxera
Hi Dirk,

While I can vote … that is not the issue I’m facing.

There is a comment on that ticket that explain probably better that how I did 
in my email:

 

“As far as I understand, this works as expected. A Build Strategy is 
responsible for the decision whether to build a newly discovered Tag Pipeline 
or not. The default strategy is not to build. The "Tags" build strategy changes 
the default to build but can be configured to ignore old or new tags.

For the tags not to be discovered or to be skipped in the first place the 
"Discover Tags" behavior of the Github Branch Source plugin needs to be 
extended or an extra plugin developed that adds a tag filter behavior.

 

The last line is what I’d like to see achieved.

So, I would take that it’s a no. It’s not possible unless someone extend the 
GitHub branch source code ☹ 

 

That’s sad.

 

Cheers,

Gianluca.

 

 

From: 'Dirk Heinrichs' via Jenkins Users  
Sent: 16 September 2021 14:16
To: jenkinsci-users@googlegroups.com
Subject: Re: How to hide/remove some tags from Jenkins builds?

 

Am Donnerstag, dem 16.09.2021 um 04:25 -0700 schrieb Gianluca:

 

Is there a way to set Jenkins to discover only certain tags based on a 
patter name, similar to branches?

If not what are my alternatives to hide some tags from that tab?

 

Please vote for this issue: https://issues.jenkins.io/browse/JENKINS-64810

 

Bye...

 

Dirk

-- 

Dirk Heinrichs

Senior Systems Engineer, Delivery Pipeline

OpenText ™ Discovery | Recommind

Phone: +49 2226 15966 18

Email: dhein...@opentext.com  

Website: www.recommind.de 

 

Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach

Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
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/160da4fd3bf3b09154f59caa2974562f0f0964a3.camel%40opentext.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/008501d7aafe%24cc48b0d0%2464da1270%24%40gmail.com.


openpgp-digital-signature.asc
Description: PGP signature


Re: How to hide/remove some tags from Jenkins builds?

2021-09-16 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, dem 16.09.2021 um 04:25 -0700 schrieb Gianluca:

> Is there a way to set Jenkins to discover only certain tags based on
> a patter name, similar to branches?
> 
> If not what are my alternatives to hide some tags from that tab?

Please vote for this issue: 
https://issues.jenkins.io/browse/JENKINS-64810

Bye...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
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/160da4fd3bf3b09154f59caa2974562f0f0964a3.camel%40opentext.com.


signature.asc
Description: This is a digitally signed message part


How to hide/remove some tags from Jenkins builds?

2021-09-16 Thread Gianluca
Hi all,
some times ago we enabled the discovery of tags in our GitHub Organization 
project on Jenkins and now a new tab with tags and builds done by checking 
out the tags is availabe.

Although, after a while, we have now that tag full of a lot of tags we are 
not building anymore because are old or irrelevant.

Is there a way to set Jenkins to discover only certain tags based on a 
patter name, similar to branches?
If not what are my alternatives to hide some tags from that tab?

Thanks,
Gianluca.

-- 
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/f00dd798-d394-40eb-931d-d87040f8307bn%40googlegroups.com.