Implement fully automated Jenkins HW8 setup with Ansible, JCasC and JJB

This commit is contained in:
2026-04-15 22:56:40 +03:00
parent 9f801e52a4
commit 2aa8a49ee1
46 changed files with 1333 additions and 412 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
: "${JENKINS_URL:?JENKINS_URL is required}"
: "${JENKINS_USER:?JENKINS_USER is required}"
: "${JENKINS_PASSWORD:?JENKINS_PASSWORD is required}"
: "${JENKINS_AGENT_NAME:?JENKINS_AGENT_NAME is required}"
exec java -jar /usr/local/bin/swarm-client.jar \
-master "${JENKINS_URL}" \
-username "${JENKINS_USER}" \
-password "${JENKINS_PASSWORD}" \
-name "${JENKINS_AGENT_NAME}" \
-labels "${JENKINS_LABELS:-maven docker}" \
-executors 1 \
-mode exclusive \
-disableSslVerification