This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a commit to branch fix-precommit-website
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/fix-precommit-website by this
push:
new 1a6a551cd31 Use onlyif
1a6a551cd31 is described below
commit 1a6a551cd315c41692a3de11e5409d44bc20259b
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Thu Feb 12 10:20:07 2026 +0400
Use onlyif
---
website/build.gradle | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/website/build.gradle b/website/build.gradle
index 4ef61725c49..71f399e0c34 100644
--- a/website/build.gradle
+++ b/website/build.gradle
@@ -135,10 +135,13 @@ task copyGcpCredsToContainer(type: Exec) {
dependsOn setupDockerContainer
def gcpCredsHost = providers.gradleProperty("gcpCredsFile").orNull
- if (gcpCredsHost != null) {
- commandLine 'docker', 'cp', gcpCredsHost,
"${->startDockerContainer.containerId()}:${gcpCredsInContainer}"
- } else {
- println "[performance_looks] -PgcpCredsFile not provided, skipping copy"
+
+ onlyIf { gcpCredsHost != null }
+
+ doFirst {
+ commandLine 'docker', 'cp',
+ gcpCredsHost,
+ "${->startDockerContainer.containerId()}:${gcpCredsInContainer}"
}
}