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 def customImage
agent { stage('Clone repository') {
node { checkout scm
label 'docker'
}
}
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(
logRotator(
numToKeepStr: '10',
artifactNumToKeepStr: '3'
)
)
ansiColor('xterm')
} }
triggers { stage('Build Docker image') {
cron('@weekly') customImage = docker.build("demo-infra-jenkins-agent")
} }
stages { stage('Test Docker image') {
stage('Clone repository') { app.inside {
checkout scm sh 'mvn'
}
stage('Build Docker image') {
customImage = docker.build("demo-infra-jenkins-agent")
} }
stage('Test Docker image') { }
app.inside { stage('Push image') {
sh 'mvn' /* push image with two tags:
} * - the incremental build number from Jenkins;
} * - the 'latest' tag. */
stage('Push image') { docker.withRegistry('https://www.joaolino.com/nexus/repository/docker-public/', 'nexus-admin') {
/* push image with two tags: customImage.push("${env.BUILD_NUMBER}")
* - the incremental build number from Jenkins; customImage.push("latest")
* - 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