From b0ff826302f6ed1be8f57fe813805245f3d658fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 19 Feb 2024 14:51:49 +0100 Subject: [PATCH] ci: add genaration of build.json matadate file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Useful for debugging missing deployments. Result: ``` > curl -sL dev.waku.org/build.json ``` Signed-off-by: Jakub SokoĊ‚owski --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a384cdb1..09221cce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,6 @@ +#!/usr/bin/env groovy +library 'status-jenkins-lib@v1.8.8' + pipeline { agent { label 'linux' } @@ -27,7 +30,7 @@ pipeline { } stage('Build') { - steps { + steps { script { /* Issues from waku-org/bounties are fetched. */ withCredentials([ string( @@ -37,8 +40,11 @@ pipeline { ]) { sh 'yarn build' } - sh "echo ${env.PROD_SITE} > build/CNAME" - } + dir('build') { + sh "echo ${env.PROD_SITE} > CNAME" + jenkins.genBuildMetaJSON() + } + } } } stage('Publish Prod') {