Jenkins deployment
gitea/hedera-web/master This commit looks good
Details
gitea/hedera-web/master This commit looks good
Details
This commit is contained in:
parent
6fceb2cf69
commit
d01fb711b1
|
@ -0,0 +1,56 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
pipeline {
|
||||
environment {
|
||||
PROJECT_NAME = 'hedera-web'
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'registry.verdnatura.es/vn-debuild'
|
||||
registryUrl 'https://registry.verdnatura.es/'
|
||||
registryCredentialsId 'docker-registry'
|
||||
args '-v /mnt/storage/reprepro:/reprepro'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
sh 'printenv'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'debuild -us -uc -b'
|
||||
sh 'vn-includedeb'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
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
|
||||
try {
|
||||
mail(
|
||||
to: env.COMMITTER_EMAIL,
|
||||
subject: "Pipeline: ${env.JOB_NAME} (${env.BUILD_NUMBER}): ${currentBuild.currentResult}",
|
||||
body: "Check status at ${env.BUILD_URL}"
|
||||
)
|
||||
} catch (e) {
|
||||
echo e.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.406.73) stable; urgency=low
|
||||
hedera-web (1.406.74) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
5
deploy
5
deploy
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
vn-debuild
|
||||
vn-deploy root@www1.static root@www2.static
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.406.73",
|
||||
"version": "1.406.74",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in New Issue