Test
Apps/everybody-mov/pipeline/head There was a failure building this commit Details

This commit is contained in:
Amber McCloughan 2022-09-03 23:28:54 -04:00
parent 5e4a63af9c
commit c8bd73c7cd
2 changed files with 22 additions and 10 deletions

8
.groovylintrc.json Normal file
View File

@ -0,0 +1,8 @@
{
"extends": "recommended",
"rules": {
"NestedBlockDepth": {
"enabled": false
}
}
}

24
Jenkinsfile vendored
View File

@ -1,9 +1,9 @@
pipeline {
agent none
environment {
HOME = "${env.WORKSPACE}"
CREDENTIALS_ID = 'digital-ocean-ailuridae-registry'
DOCKER_REGISTRY = 'https://registry.digitalocean.com'
DOCKER_IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov'
DOCKER_IMAGE = ''
@ -48,15 +48,20 @@ pipeline {
agent {
label 'main'
}
when {
branch 'main'
}
// when {
// branch 'main'
// }
steps {
script {
docker.withRegistry(env.DOCKER_REGISTRY, 'digital-ocean-ailuridae-registry') {
DOCKER_IMAGE.push("${BUILD_NUMBER}")
DOCKER_IMAGE.push('latest')
}
withCredentials(
credentialsId: env.CREDENTIALS_ID,
usernameVariable: 'JENKINS_USERNAME',
passwordVariable: 'JENKINS_PASSWORD') {
docker.withRegistry(env.DOCKER_REGISTRY, env.CREDENTIALS_ID) {
DOCKER_IMAGE.push("${BUILD_NUMBER}")
DOCKER_IMAGE.push('latest')
}
}
}
}
}
@ -69,5 +74,4 @@ pipeline {
}
}
}
}
}