Bootstrap Jenkins pipeline
This commit is contained in:
23
Jenkinsfile
vendored
Normal file
23
Jenkinsfile
vendored
Normal file
@@ -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}}"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user