From 297f3dbd8270ee0b496bb94bb750c69a30ca25ce Mon Sep 17 00:00:00 2001 From: swarm-bootstrap-bot Date: Sun, 8 Mar 2026 18:30:29 +0000 Subject: [PATCH] Bootstrap Jenkins pipeline --- Jenkinsfile | 23 +++++++++++++++++++++++ README.md | 9 ++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..99e039d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent any + + options { + buildDiscarder(logRotator(numToKeepStr: '20')) + timeout(time: 30, unit: 'MINUTES') + } + + stages { + stage('Validate Workspace') { + steps { + sh 'pwd' + sh 'ls -la' + } + } + + stage('Swarm Check') { + steps { + sh 'docker service ls --format "{{.Name}} {{.Replicas}}"' + } + } + } +} diff --git a/README.md b/README.md index c545f9f..692fb0c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ -# platform-bootstrap +# Gitea to Jenkins Bootstrap Repo +This repository is created automatically by the Swarm bootstrap automation. + +## What it validates + +- Gitea repository provisioning and token authentication +- Jenkins Pipeline from SCM checkout with the generated Gitea token +- Jenkins access to Docker Swarm (`docker service ls`)