Skip to content

Commit

Permalink
fix: use array length properly (#28872) (#28885)
Browse files Browse the repository at this point in the history
(cherry picked from commit 137bc7b)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
  • Loading branch information
mergify[bot] and mdelapenya authored Nov 9, 2021
1 parent bfb7d8c commit 432e793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def archiveTestOutput(Map args = [:]) {
def fileName = 'build/system-tests-*.tar.gz' // see dev-tools/mage/target/common/package.go#PackageSystemTests method
def files = findFiles(glob: "${fileName}")

if (files?.length() > 0) {
if (files?.length > 0) {
googleStorageUploadExt(
bucket: "gs://${JOB_GCS_BUCKET}/${env.JOB_NAME}-${env.BUILD_ID}",
credentialsId: "${JOB_GCS_EXT_CREDENTIALS}",
Expand Down

0 comments on commit 432e793

Please sign in to comment.