diff --git a/Jenkinsfile b/Jenkinsfile index 1f34447..48aaa1c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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} ';'" } }