Jenkins
Jenkinsfile (Declarative Pipeline) - Example Structure
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}
Quick Start Jenkinsfile Example for Java
# Requires the Docker Pipeline plugin
pipeline {
agent { docker { image 'maven:3.8.7-eclipse-temurin-11' } }
stages {
stage('build') {
steps {
sh 'mvn --version'
}
}
}
}