{{tag>Brouillon CI}} # Notes Jenkins ## Serveur ~~~bash # 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 : * Role-based Authorization Strategy * Pipeline Recommandés : * Folders * OWASP Markup Formatter * Build Timeout * Credentials Binding * Timestamper * Workspace Cleanup * Ant * Gradle * Pipeline * GitHub Branch Source * Pipeline: GitHub Groovy Libraries * Pipeline Graph View * Git * SSH Build Agents * Matrix Authorization Strategy * LDAP * Email Extension * Mailer * Dark Theme ### Pb Erreur Form too large 208753>200000 #### Solution Ajouter l'argument ci-dessous dans le fichier jenkins.xml : ~~~bash -Dorg.eclipse.jetty.server.Request.maxFormContentSize=5000000 ~~~ ## API ~~~bash 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 ~~~bash wget http://jenkins:8080/jnlpJars/jenkins-cli.jar java -jar jenkins-cli.jar -s http://localhost:8080/ help ~~~ ## Salve ~~~bash 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: * Declarative Pipeline (recommended for most users) * Scripted Pipeline