From 37339d204f3f81144ac8ea00b3be095249eac03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 19 Feb 2024 12:40:22 +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. Signed-off-by: Jakub SokoĊ‚owski --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1df0fc4..f9ed379 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,9 +30,12 @@ pipeline { } stage('Build') { - steps { + steps { script { sh 'yarn build' - sh "echo ${env.PROD_SITE} > build/CNAME" + dir('build') { + sh "echo ${env.PROD_SITE} > CNAME" + jenkins.genBuildMetaJSON() + } } } }