Skip to content

Latest commit

 

History

History
38 lines (37 loc) · 1.45 KB

Jenkinsfile-build-docs.tuleap.org

File metadata and controls

38 lines (37 loc) · 1.45 KB

pipeline { agent { label ‘docker’ }

stages { stage(‘Checkout’) { steps { checkout scm } } stage(‘Build and publish image’) { steps { script { def image withCredentials([string(credentialsId: ‘google-analytics-uid’, variable: ‘GA_ID’), string(credentialsId: ‘google-analytics-content-group-index’, variable: ‘GA_CONTENT_GROUP_INDEX’), string(credentialsId: ‘google-analytics-content-group-name’, variable: ‘GA_CONTENT_GROUP_NAME’)]) { image = docker.build( ‘tuleap-documentation.docs.tuleap.org’, “-f docs.tuleap.org/Dockerfile –build-arg GA_ID=’${env.GA_ID}’ –build-arg GA_CONTENT_GROUP_INDEX=’${env.GA_CONTENT_GROUP_INDEX}’ –build-arg GA_CONTENT_GROUP_NAME=’${env.GA_CONTENT_GROUP_NAME}’ .” ) } docker.withRegistry(‘https://nexus.enalean.com:22000’, ‘ci-write’) { image.push() } } } } stage(‘Deploy’) { steps { sshagent([‘deploy-documentation-web01.enalean.com’]) { sh ‘ssh [email protected] ./update_docs.tuleap.org.sh’ } } } } }