pub-dns/Jenkinsfile

35 lines
719 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building from Docker Compose...'
step(
[
$class: 'DockerBuilderPublisher',
cleanImages: false,
cleanupWithJenkinsJobDelete: false,
cloud: '',
dockerFileDirectory: '',
fromRegistry: [url: 'docker-registry1.in.thelinuxpro.net:5000'],
pushCredentialsId: '',
pushOnSuccess: false,
tagsString: ''
]
)
}
}
stage('Push to Registry') {
steps {
echo('docker push [disabled]')
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}