mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-05 23:11:31 +01:00
Changes for jenkins
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -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} ';'"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user