Commit 980a4373 authored by João Lino's avatar João Lino

Remove pipeline.

parent ff090ba2
Pipeline #5 failed with stages
pipeline {
node {
label 'docker'
def customImage
agent {
node {
label 'docker'
}
}
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(
logRotator(
numToKeepStr: '10',
artifactNumToKeepStr: '3'
)
)
ansiColor('xterm')
stage('Clone repository') {
checkout scm
}
triggers {
cron('@weekly')
stage('Build Docker image') {
customImage = docker.build("demo-infra-jenkins-agent")
}
stages {
stage('Clone repository') {
checkout scm
}
stage('Build Docker image') {
customImage = docker.build("demo-infra-jenkins-agent")
stage('Test Docker image') {
app.inside {
sh 'mvn'
}
stage('Test Docker image') {
app.inside {
sh 'mvn'
}
}
stage('Push image') {
/* push image with two tags:
* - the incremental build number from Jenkins;
* - the 'latest' tag. */
docker.withRegistry('https://www.joaolino.com/nexus/repository/docker-public/', 'nexus-admin') {
customImage.push("${env.BUILD_NUMBER}")
customImage.push("latest")
}
}
stage('Push image') {
/* push image with two tags:
* - the incremental build number from Jenkins;
* - the 'latest' tag. */
docker.withRegistry('https://www.joaolino.com/nexus/repository/docker-public/', 'nexus-admin') {
customImage.push("${env.BUILD_NUMBER}")
customImage.push("latest")
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment