Table des matières

,

Notes Jenkins

Serveur

# podman run -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home docker.io/jenkins/jenkins:lts
podman run -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home docker.io/jenkins/jenkins:lts-jdk21
 
podman exec -l cat /var/jenkins_home/secrets/initialAdminPassword

Plugins :

Recommandés :

Pb Erreur Form too large 208753>200000

Solution

Ajouter l'argument ci-dessous dans le fichier jenkins.xml :

-Dorg.eclipse.jetty.server.Request.maxFormContentSize=5000000

API

read -s MDP
# curl -u admin:"$MDP" -s http://localhost:8080/api/json | python3 -m json.tool
curl -u admin:"$MDP" -s http://localhost:8080/api/json | jq .

CLI

wget http://jenkins:8080/jnlpJars/jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080/ help

Salve

wget http://jenkins:8080/jnlpJars/agent.jar
java -jar agent.jar  -jnlpUrl http://jenkins:8080/computer/vmdeb1/slave-agent.jnlp -jnlpCredentials user:password

Pipeline

A Jenkinsfile is written using a Groovy-based DSL (Domain-Specific Language) and can be structured in two ways: