Jenkins deploy test
gitea/vn-vmware/master There was a failure building this commit
Details
gitea/vn-vmware/master There was a failure building this commit
Details
This commit is contained in:
parent
06c71df9c2
commit
b178ce5279
|
@ -4,38 +4,27 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
PROJECT_NAME = 'vn-vmware'
|
PROJECT_NAME = 'vn-vmware'
|
||||||
IMAGE = 'registry.verdnatura.es/vn-debuild'
|
}
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'registry.verdnatura.es/vn-debuild'
|
||||||
|
registryUrl 'https://registry.verdnatura.es/'
|
||||||
|
registryCredentialsId 'docker-registry'
|
||||||
|
args '-v /mnt/storage/reprepro:/reprepro'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
if (!env.GIT_COMMITTER_EMAIL) {
|
|
||||||
env.COMMITTER_EMAIL = sh(
|
|
||||||
script: 'git --no-pager show -s --format="%ae"',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
} else {
|
|
||||||
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sh 'printenv'
|
sh 'printenv'
|
||||||
|
sh 'whoami'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'registry.verdnatura.es/vn-debuild'
|
|
||||||
registryUrl 'https://registry.verdnatura.es/'
|
|
||||||
registryCredentialsId 'docker-registry'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
sh 'ls /var/jenkins_home'
|
|
||||||
sh 'debuild -us -uc -b'
|
sh 'debuild -us -uc -b'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,14 +32,6 @@ pipeline {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'registry.verdnatura.es/vn-debuild'
|
|
||||||
registryUrl 'https://registry.verdnatura.es/'
|
|
||||||
registryCredentialsId 'docker-registry'
|
|
||||||
args '-u www-data -v /mnt/storage/reprepro:/reprepro'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
sh 'vn-include "$WORKSPACE"'
|
sh 'vn-include "$WORKSPACE"'
|
||||||
}
|
}
|
||||||
|
@ -59,6 +40,15 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
script {
|
script {
|
||||||
|
if (!env.GIT_COMMITTER_EMAIL) {
|
||||||
|
env.COMMITTER_EMAIL = sh(
|
||||||
|
script: 'git --no-pager show -s --format="%ae"',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
} else {
|
||||||
|
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!env.COMMITTER_EMAIL) return
|
if (!env.COMMITTER_EMAIL) return
|
||||||
try {
|
try {
|
||||||
mail(
|
mail(
|
||||||
|
|
Reference in New Issue