Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-14 Thread Ramanathan Muthaiah
On Monday, April 13, 2020 at 11:02:12 PM UTC+5:30, Ivan Fernandez Calvo 
wrote:
>
> I make it with JCasC, basically is a Docker compose with Jenkins, 
> openSAML, and a SSH Build Agent, it is what I use to test issues see 
> https://github.com/kuisathaverat/jenkins-issues/tree/master/jobDSL
>
> You have a bunch of examples on the JCasC demo folder
>
>
> https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/demos/build_agents/README.md
>

Thanks very much for sharing the info, will take a look.

/Ram 

-- 
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/841c4d48-e3ff-4d92-8883-1e3567e45d56%40googlegroups.com.


Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-13 Thread Ivan Fernandez Calvo
I make it with JCasC, basically is a Docker compose with Jenkins, openSAML, and 
a SSH Build Agent, it is what I use to test issues see 
https://github.com/kuisathaverat/jenkins-issues/tree/master/jobDSL

You have a bunch of examples on the JCasC demo folder

https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/demos/build_agents/README.md

-- 
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/c969d56f-f62a-498a-91be-58d8d6842a81%40googlegroups.com.


Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-13 Thread Ramanathan Muthaiah
On Saturday, April 11, 2020 at 5:43:28 PM UTC+5:30, Ivan Fernandez Calvo 
wrote:
>
> Hi,
>
> I have a Jenkins instance running (2.230, also I have tested LTS) on a 
> Docker container using only HTTPS with self-signed certificates, in the 
> same network I start an SSH Build Agent and a JNLP Agent, the SSH Build 
> agent connects
> without issues,
>

Am interested to know how you managed this config i.e. SSH connectivity 
from the master to external build agent or node.

For a while, I have been searching thru' docs, this forum and SO but could 
not find proper solution.

Would appreciate if you can pls outline the functional config or procedure.

/Ram 

-- 
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/f8c451bd-f71f-4e31-8f5f-46b3f0b11a6e%40googlegroups.com.


Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-11 Thread Ivan Fernandez Calvo
Well, it was a stupid thing the URL that I pass to the Docker container is 
the JNLP agent URL (
https://jenkins:9443/computer/jnlp-agent/slave-agent.jnlp ), it should be 
the Jenkins URL (https://jenkins:9443 
), so that's my 
error.

This command works as expected :palmface: 

docker run --name jnlp-agent -it --rm --network net jenkins/jnlp-slave 
-disableHttpsCertValidation -credentials jenkins:"SuP3rP4ssw0rd" -url 
https://jenkins:9443 
 
224a6accfb5b9728e3db3dfc43ae8d2d986b24c09b2d8701497ca13c474d3dde jnlp-agent

BTW the error message is completely unrelated to the fail that was what 
confuses me. 

-- 
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/88f0e8d3-97c6-42d6-8a53-850b73bc2f05%40googlegroups.com.