Convert to Declarative

This commit is contained in:
R. Tyler Croy 2018-09-17 05:51:16 -07:00 committed by GitHub
parent b45392c226
commit 491073240a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 14 deletions

36
Jenkinsfile vendored
View File

@ -1,20 +1,28 @@
#!/usr/bin/env groovy
node('docker') {
stage('Build') {
docker.image('alpine').inside {
echo 'im building'
sh 'uname -a'
pipeline {
agent none
stages {
stage('Build') {
agennt { docker 'alpine' }
steps {
echo 'I am building'
sh 'uname -a'
}
}
}
stage('Test') {
sleep 10
docker.image('maven').inside {
sh 'cat /proc/meminfo'
stage('Test') {
agent { docker 'maven' }
steps {
sh 'mvn --version'
}
}
}
stage('Deploy') {
stage('Deploy') {
agent { docker 'alpine' }
steps {
echo 'Deploying to serverless cloud containers etc'
}
}
}
}