Skip to content

Commit 5daf65e

Browse files
committed
Add preview.gitpod_built_successfully
1 parent 071a5d0 commit 5daf65e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.werft/jobs/build/build-and-publish.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export async function buildAndPublish(werft: Werft, jobConfig: JobConfig) {
1616
const {
1717
publishRelease,
1818
dontTest,
19-
withContrib,
2019
retag,
2120
version,
2221
localAppVersion,
@@ -27,6 +26,9 @@ export async function buildAndPublish(werft: Werft, jobConfig: JobConfig) {
2726

2827
const releaseBranch = jobConfig.repository.ref;
2928

29+
// We set it to false as default and only set it true if the build succeeds.
30+
werft.rootSpan.setAttributes({ "preview.gitpod_built_successfully": false });
31+
3032
werft.phase("build", "build running");
3133
const imageRepo = publishRelease ? "gcr.io/gitpod-io/self-hosted" : "eu.gcr.io/gitpod-core-dev/build";
3234

@@ -94,6 +96,8 @@ export async function buildAndPublish(werft: Werft, jobConfig: JobConfig) {
9496
if (jobConfig.publishToKots) {
9597
publishKots(werft, jobConfig);
9698
}
99+
100+
werft.rootSpan.setAttributes({ "preview.gitpod_built_successfully": true });
97101
}
98102

99103
/**

0 commit comments

Comments
 (0)