Re: Issue with Jenkins and GitLab Integration

2024-04-25 Thread Kris Stern
Hi Erick,

I can try and reproduce your issue this weekend before getting back to you over 
the next few days.

Best,
Kris

From: jenkinsci-users@googlegroups.com  on 
behalf of Erick Mormin 
Sent: 24 April 2024 21:12
To: Jenkins Users 
Subject: Issue with Jenkins and GitLab Integration


Dear Jenkins Support,



I am reaching out to you regarding difficulties I am encountering with 
integrating Jenkins and GitLab for my project. Below are the details of the 
problem I am facing:



1. Problem Description:

   While configuring the integration between Jenkins and GitLab, I followed the 
recommended steps to generate an SSH key in Jenkins, add it to my GitLab 
account, configure webhooks, and create credentials in Jenkins. However, 
despite these actions, I am facing errors when attempting to trigger builds 
from GitLab webhooks.



2. Errors Encountered:

   - When I try to trigger a build from a push on GitLab, I receive an HTTP 403 
error with the message "No valid crumb was included in the request".

   - Additionally, when Jenkins attempts to fetch changes from the GitLab 
repository, I receive a permission denied error with the message "Permission 
denied (publickey,password)".



3. Actions Taken:

   - I have verified that the SSH keys generated in Jenkins have been correctly 
added to my GitLab account.

   - I have also verified that the credentials and webhook configurations in 
Jenkins are correct.



4. Recommended Actions:

   I am seeking your assistance in resolving this issue. Could you please:

   - Verify if the configuration I have described is correct and if I have 
missed anything important?

   - Provide guidance or recommendations for diagnosing and resolving the 
errors I am encountering?

   - Suggest additional steps I could take to resolve this issue?



5. Additional Information:

   - Here are the details of my Jenkins and GitLab configuration:

 - Jenkins Version: 2.440.3

 - GitLab Version: 16.10

 - Jenkins Configuration: please see the document in attachment

 - GitLab Configuration: please see the document in attachment



Thank you in advance for your help and assistance in resolving this problem. 
Please feel free to contact me if you need further information.



Best regards,

Erick MORMIN


--
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/a9b8bc67-ae1e-4e6c-a374-529f668b6b5cn%40googlegroups.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/TY1P286MB3171D805D8AA418D223D8833A1172%40TY1P286MB3171.JPNP286.PROD.OUTLOOK.COM.


Re: Regarding two jenkins jobs

2023-08-10 Thread Kris Stern
Hi Ashok,

According to Björn's suggestion, he is suggesting you not to use a single 
Jenkinsfile if you would like to run two jobs on two instances of Jenkins on 
the same server. However, if you are using the two instances on the same server 
to say for example run a frontend and a backend for a web app, you can probably 
achieve this with multiple Docker containers using a single Jenkinsfile for a 
Pipeline by following the suggested instructions at 
https://www.jenkins.io/doc/book/pipeline/docker/#using-multiple-containers.

However, if you really want more tailored suggestions the community can offer, 
you will need to provide us with more information about your setup, as well as 
what is your use case for. Otherwise we can only guess and throw (perhaps not 
100% relevant) ideas at you.

Since you are using Jenkins for a work project, I think it may be a good idea 
to ask around to see how this is usually set up at your company from someone 
who has done it before, or from some documentation. This will help make sure 
that you are following. the best practices established at your company.

Best,
Kris


From: jenkinsci-users@googlegroups.com  on 
behalf of Ashok Reddy 
Sent: 11 August 2023 08:51
To: jenkinsci-users@googlegroups.com 
Subject: Re: Regarding two jenkins jobs

Hi Kris,

Thank for your help but, I am expecting to configure two jenkins instances in 
one jenkinsfile.

As Doneer suggested, it would be good to implement but in my org, they have 
already implemented. Not sure how did they implement
it.

On Thu, 10 Aug 2023 at 10:30 PM, Kris Stern 
mailto:krisst...@outlook.com>> wrote:
Hi Ashok,

I am guessing you are looking for the following, but am not sure...

You can try something like the below:


java -DJENKINS_HOME=/path-to-jenkins1 -jar jenkins.war --httpPort=8080
java -DJENKINS_HOME=/path-to-jenkins2 -jar jenkins.war --httpPort=8081


Something like this, so one instance can be reached at port 8080 and the other 
one at port 8081.

Best,
Kris


From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>> on 
behalf of Ashok Reddy mailto:ashokrd...@gmail.com>>
Sent: 10 August 2023 22:25
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Regarding two jenkins jobs


Hi Kris,

Yes , two jenkins instances
On Thu, 10 Aug 2023 at 9:54 PM, 'Björn Pedersen' via Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>> 
wrote:


ashok...@gmail.com<mailto:ashok...@gmail.com> schrieb am Donnerstag, 10. August 
2023 um 03:54:11 UTC+2:
Hi All,

How to configure jenkinsfile if one job is in one jenkins instance and another 
job is in another jenkins instance?

I you really mean 2 jenkins instances (not different agents):

* don't use a single Jenkinsfile, instead configure the jobs (at least on one 
instance) to  use another name (e.g. jenkinsfile.host).
* or  switch execution based on the HUDSON_URL variable (this gives the main 
jenkins URL), although this most likely will make the jenkinsfile quite 
unreadable.



--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7c6eee8d-3526-41cf-a758-f0f32523dd8an%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/7c6eee8d-3526-41cf-a758-f0f32523dd8an%40googlegroups.com?utm_medium=email_source=footer>.

--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKRLcHhxb4uK2uAwkuUKqPG7N%3DpBzsyHkg3nLEMOFtQxJMZfxQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAKRLcHhxb4uK2uAwkuUKqPG7N%3DpBzsyHkg3nLEMOFtQxJMZfxQ%40mail.gmail.com?utm_medium=email_source=footer>.

--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/OS3P286MB1431FE7694ADADDC290132ADA113A%40OS3P286MB1431.JPNP286.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/OS3P286MB

Re: Regarding two jenkins jobs

2023-08-10 Thread Kris Stern
Hi Ashok,

I am guessing you are looking for the following, but am not sure...

You can try something like the below:


java -DJENKINS_HOME=/path-to-jenkins1 -jar jenkins.war --httpPort=8080
java -DJENKINS_HOME=/path-to-jenkins2 -jar jenkins.war --httpPort=8081


Something like this, so one instance can be reached at port 8080 and the other 
one at port 8081.

Best,
Kris


From: jenkinsci-users@googlegroups.com  on 
behalf of Ashok Reddy 
Sent: 10 August 2023 22:25
To: jenkinsci-users@googlegroups.com 
Subject: Re: Regarding two jenkins jobs


Hi Kris,

Yes , two jenkins instances
On Thu, 10 Aug 2023 at 9:54 PM, 'Björn Pedersen' via Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>> 
wrote:


ashok...@gmail.com schrieb am Donnerstag, 10. August 
2023 um 03:54:11 UTC+2:
Hi All,

How to configure jenkinsfile if one job is in one jenkins instance and another 
job is in another jenkins instance?

I you really mean 2 jenkins instances (not different agents):

* don't use a single Jenkinsfile, instead configure the jobs (at least on one 
instance) to  use another name (e.g. jenkinsfile.host).
* or  switch execution based on the HUDSON_URL variable (this gives the main 
jenkins URL), although this most likely will make the jenkinsfile quite 
unreadable.



--
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/7c6eee8d-3526-41cf-a758-f0f32523dd8an%40googlegroups.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/CAKRLcHhxb4uK2uAwkuUKqPG7N%3DpBzsyHkg3nLEMOFtQxJMZfxQ%40mail.gmail.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/OS3P286MB1431FE7694ADADDC290132ADA113A%40OS3P286MB1431.JPNP286.PROD.OUTLOOK.COM.


Re: Regarding two jenkins jobs

2023-08-09 Thread Kris Stern
Hi Ashok,

You may want to take a look at 
https://www.jenkins.io/doc/book/using/using-agents/.

Best,
Kris

From: jenkinsci-users@googlegroups.com  on 
behalf of Ashok Reddy 
Sent: 10 August 2023 09:53
To: jenkinsci-users@googlegroups.com 
Subject: Regarding two jenkins jobs

Hi All,

How to configure jenkinsfile if one job is in one jenkins instance and another 
job is in another jenkins instance?

--
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/CAKRLcHg0snvxrSzxQjZgkrBfDM9ORrT7hneSza00k9_dSm%2Baew%40mail.gmail.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/OS3P286MB143100603EADD3833C5DD206A113A%40OS3P286MB1431.JPNP286.PROD.OUTLOOK.COM.


GSoC 2023 Building jenkins.io with alternative tools project feedback solicitation

2023-05-18 Thread Kris Stern
RE: Seeking Community Input on Jenkins.io Tooling: Antora vs. Gatsby

Hi everyone,

We hope this email finds you well. We are reaching out to the Jenkins community 
to discuss the approach we should take to improve the tooling for jenkins.io 
moving forward as a part of the Google Summer of Code (GSoC) 2023 "Building 
jenkins.io with alternative tools" project. For more information regarding this 
project, please see 
https://www.jenkins.io/projects/gsoc/2023/projects/alternative-jenkinsio-build-tool/.
 We are considering two options as the alternative tools to 
Awestruct<https://github.com/awestruct/awestruct>, which are 
Antora<https://antora.org/> and Gatsby<https://www.gatsbyjs.com/>, and would 
greatly appreciate your engagement and feedback on this matter.

The proposed tooling enhancements aim to streamline the documentation 
management process, improve user experience, and enhance the overall 
functionality of jenkins.io. We have identified Antora and Gatsby as potential 
frameworks to achieve these goals. Before finalizing a decision of the exact 
tooling to be used, it is important to consider the pros and cons of each 
option for different parts of the website.

Antora, a documentation site generator, has gained popularity due to its 
simplicity and flexibility. It uses AsciiDoc as its primary markup language and 
supports modular documentation structures. Some advantages of Antora include:


  *   Easy integration with existing systems.
  *   Strong support for versioning and multi-repository setups.
  *   Highly customizable output formats.
  *   Extensive community support.

On the other hand, Gatsby, a modern static site generator, offers advanced 
performance optimizations and a wide range of plugins. It uses React.js as its 
underlying framework and offers benefits such as:


  *   Superior performance and optimized loading times.
  *   Extensive plugin ecosystem for customization and extensibility.
  *   Rich theming options for enhanced visual appeal.
  *   Active and growing developer community.

While both Antora and Gatsby have their strengths, we would like to express our 
preference for Antora for most of the parts based on our initial evaluation. 
However, we believe it is vital to gather insights and feedback from the 
community at large to ensure we will be making the best decision for the 
project as a whole. Your expertise and perspectives are invaluable in 
determining the most suitable tooling approach for jenkins.io.

To facilitate this discussion, please share your thoughts, concerns, and any 
relevant experiences with either Antora or Gatsby via this email thread. Your 
input will help us make an informed decision that aligns with the needs and 
expectations of the Jenkins community.

We greatly appreciate your time and contributions to the project. Thank you for 
being an integral part of the Jenkins community, and we look forward to 
receiving your invaluable feedback.

Best,
Kris Stern on behalf of Vandit Singh our GSoC contributor working on this 
project and the mentors' team

-- 
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/OS3P286MB14317C59BC272917E3CAC298A17F9%40OS3P286MB1431.JPNP286.PROD.OUTLOOK.COM.