title: Google CloudBuild artifacts YAML
body: <p>I've followed the docs for Google CloudBuild here: <a href="https://cloud.google.com/cloud-build/docs/configuring-builds/store-images-artifacts" rel="nofollow noreferrer">https://cloud.google.com/cloud-build/docs/configuring-builds/store-images-artifacts</a></p>
  
  <p>So here's my <code>cloudbuild.yaml</code> configuration:</p>
  
  <pre><code>steps:
  - name: gcr.io/cloud-builders/git
  id: git-checkout
  args: [ 'fetch','--tags','--unshallow']
  - name: openjdk
  id: gradle-build
  args: [
      './gradlew',
      '--build-cache',
      '-Si',
      '-Panalytics.buildId=$BUILD_ID',
      '-PgithubToken=$_GITHUB_TOKEN',
      '-g', '$_GRADLE_CACHE',
      'build'
  ]
  artifacts:
  objects:
      location: ['gs://my-bucket/artifacts/']
      paths: ["build/libs/*.jar"]
  </code></pre>
  
  <p>If I comment out, the following, then it runs successfully:</p>
  
  <pre><code>artifacts:
  objects:
      location: ['gs://my-bucket/artifacts/']
      paths: ["build/libs/*.jar"]
  </code></pre>
  
  <p>Without comments, I get the following error from the CloudBuild console:</p>
  
  <p><code>failed unmarshalling build config cloudbuild.yaml: json: cannot unmarshal array into Go value of type string</code></p>
  
  <p>And under the <em>Logs</em> section, it simply says <em>Logs unavailable</em>.</p>