DevOps File Composer
The I.B.S.O Method
One mental model for the entire stack. Every config file is Inputs → Base → Steps → Outputs. Learn it once, write any file.
IINPUTS
vars, env, secrets, images
BBASE
agent, FROM, provider, hosts
SSTEPS
RUN, stages, tasks, jobs
OOUTPUTS
CMD, ports, outputs, deploy
Jenkinsfile
Declarative Pipeline
pipeline {
agent any // BASE: Where it runs
environment { // INPUTS
APP = 'api-service'
REGISTRY = 'ecr.aws'
}
stages {
stage('Build') { // STEPS: 1
steps {
sh 'mvn clean package -DskipTests'
}
}
stage('Docker') { // STEPS: 2
steps {
sh 'docker build -t $REGISTRY/$APP:$BUILD_NUMBER .'
}
}
stage('Deploy') {
steps {
sh 'kubectl apply -f k8s/'
}
}
}
post { // OUTPUTS
success { echo 'Deployed $APP' }
failure { slackSend 'Failed' }
}
}