Changes for jenkins

This commit is contained in:
Paolo Andreetto
2019-12-19 10:29:55 +01:00
parent 6b43046fb6
commit 884f5ca084

16
Jenkinsfile vendored
View File

@@ -2,18 +2,30 @@ pipeline {
agent {
docker {
image 'infnpd/cmt-environment:1.0-centos7'
image 'infnpd/cmt-environment:1.1-centos7'
args '-u 0:0'
label 'DOCKER'
}
}
environment {
NEXUS_PD_CREDS = credentials('jenkins-nexus-pd-creds')
NEXUS_PD_URL = 'https://cld-smact-02.pd.infn.it/artifacts/repository/muotom/devel/centos7/x86_64/'
}
stages {
stage('Build') {
steps {
sh "mkdir build && cd build && cmake -D ULIB_USE_QT5:BOOL=OFF .. && make"
sh "mkdir build && cd build && cmake -DNODOXYGEN=ON .. && make rpm"
}
}
stage('Deploy') {
steps {
sh "find . -name '*.x86_64.rpm' curl -v -k --user '${NEXUS_PD_CREDS_USR}:${NEXUS_PD_CREDS_PSW}' --upload-file '{}' ${NEXUS_PD_URL} ';'"
}
}