jenkinsci / digitalocean-plugin Goto Github PK
View Code? Open in Web Editor NEWJenkins DigitalOcean Agent Plugin
Home Page: https://plugins.jenkins.io/digitalocean-plugin/
License: MIT License
Jenkins DigitalOcean Agent Plugin
Home Page: https://plugins.jenkins.io/digitalocean-plugin/
License: MIT License
Ubuntu 22.04 x64
Jenkins spins up a usable agent using an ED25519 SSH Key generated with ssh-keygen -t ed25519.
Jenkins gets stuck in an endless loop of creating and destroying the droplet, as it is unable to connect.
The following exception message occurs:
Oct 10, 2022 4:20:43 PM WARNING com.dubture.jenkins.digitalocean.DigitalOceanComputerLauncher launch
Publickey authentication failed.
java.io.IOException: PEM problem: it is of unknown type. Supported algorithms are :[ssh-ed25519, ecdsa-sha2-nistp521, ecdsa-sha2-nistp384, ecdsa-sha2-nistp256, rsa-sha2-256, rsa-sha2-512, ssh-rsa, ssh-dss]
at com.trilead.ssh2.crypto.PEMDecoder.decodeKeyPair(PEMDecoder.java:482)
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:290)
Caused: java.io.IOException: Publickey authentication failed.
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:349)
at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:472)
at com.dubture.jenkins.digitalocean.DigitalOceanComputerLauncher.launch(DigitalOceanComputerLauncher.java:170)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:298)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:48)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:82)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
I am able to connect to the newly created droplet by SSH'ing from the Jenkins master node to the agent, using the SSH key I have saved in Jenkins.
I currently have the following configuration for the cloud agent:
Instance cap: 2
Timeout in minutes: 10
Connection retry wait in seconds: 30
Image: Ubuntu 22.04 x64
Run as user: root
Jenkins workspace directory path: /jenkins/
SSH port: 22
Labels [none]
Setup Private Networking: Yes
Allow jobs with no label restriction: Yes
Number of executors: 2
Idle termination time: -1
Instance cap: 2
Install monitoring: Yes
User data:
#cloud-config
apt_upgrade: true
package_upgrade: true
packages:
- openjdk-11-jre-headless
- docker.io
runcmd:
- [ mkdir, /jenkins ]
- [ chmod, 777, /jenkins ]
Init script:
#!/bin/bash
echo "starting init script"
while ! cloud-init status|grep -qF 'done'
do
echo "waiting for cloud-init to be done"
sleep 10
done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.