Skip to content

Latest commit

 

History

History
40 lines (38 loc) · 1.35 KB

Jenkinsfile-build-docs.tuleap.org

File metadata and controls

40 lines (38 loc) · 1.35 KB

pipeline { agent { label ‘docker’ }

stages { stage(‘Checkout’) { steps { checkout scm } } stage(‘Build and publish image’) { steps { script { @Library(‘tuleap-jenkinsfile-library@master’) _ def lib_signing = new org.tuleap.Signing(); lib_signing.prefetchToolsToSignDockerImages(‘ci-write’); def image_name = ‘tuleap-documentation.docs.tuleap.org’; def image = docker.build( image_name, ‘-f docs.tuleap.org/Dockerfile .’ ) def registry_name = “nexus.enalean.com:22000”; docker.withRegistry(“https://${registry_name}”, ‘ci-write’) { image.push()

lib_signing.signDockerImage(“${registry_name}/${image_name}”, env.VAULT, ‘tuleap-additional-tools-signing’, ‘vault-role-tuleap-additional-tools-signing’) } } } } stage(‘Deploy’) { steps { sshagent([‘deploy-documentation-web01.enalean.com’]) { sh ‘ssh jenkins@web01.enalean.com ./update_docs.tuleap.org.sh’ } } } } }