pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'docker build --tag base ./ -f Dockerfile.base'
sh 'docker build --tag lint-agent ./ -f Dockerfile.lint'
sh 'docker build --tag documentation-agent ./ -f Dockerfile.documentation'
sh 'docker build --tag linux-build-agent ./ -f Dockerfile.build.linux'
sh 'docker build --tag windows-build-agent ./ -f Dockerfile.build.windows'
sh 'docker build --tag macosx-build-agent ./ -f Dockerfile.build.macosx'
sh 'docker build --tag cockpit-ws ./ -f Dockerfile.cockpit'
}
}
stage('Deploy') {
steps {
echo 'Starting..'
sh 'docker-compose -f docker-compose.yml up -d'
}
}
}
}