Create jenkins pipelines
pipeline {
agent any
stages {
stage('[stage_name]') {
steps {
.
.
.
.
.
.
}
}
stage('[stage_name]') {
steps {
.
.
.
.
.
.
}
}
stage('[stage_name]') {
steps {
.
.
.
.
.
.
}
}
stage('[stage_name]') {
steps {
.
.
.
.
.
.
}
}
.
.
.
.
.
.
.
.
.
.
.
.
}
}
example:
pipeline {
agent any
stages {
stage('Preparation') {
steps {
sh 'git clone https://github.com/spansolusi/kyuga.git'
}
}
stage('key-verification') {
steps {
sh 'pwd'
sh 'chmod 400 kyuga/region3-key.pem'
}
}
stage('install microk8s') {
steps {
sh 'pwd'
sh 'cd kyuga && ansible-playbook microk8s-setup.yaml'
}
}
stage('add-nodes') {
steps {
sh 'pwd'
sh 'cd kyuga && ansible-playbook add-nodes.yaml'
}
}
stage('install YugaByte') {
steps{
sh 'pwd'
sh 'cd kyuga && ansible-playbook yb-setup.yaml'
}
}
}
}