0

私はJenkinsとGoogle-Cloud-buildとの統合に慣れておらず、cloudbuild.yamlを使用してさまざまなGoogle-CloudプロジェクトのJenkins(gcloudでインスタンスでホストされている)ジョブのセットアップに苦労しています。私は単純な(多くの方法も試しました)inline-yamlを使用していますが、(さまざまな)エラーが発生しています。よくわかりません。これをどのように構成すればよいですか。私はグーグルで助けを求めて検索しましたが、誰も私の問題に関連するものを投稿していないようです.

Jenkins - ジョブ出力 - Google Cloud Build 実行中!手順:

# Build the container image
- name: 'gcr.io/cloud-builders/docker'
  args: ['build', '-t', 'gcr.io/yyyyyyy/amar-test-yaml', '/bitnami/jenkins/jenkins_home/workspace/amar-test-yaml/Dockerfile']
# Push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
  args: ['push', 'gcr.io/yyyyyyy/amar-test-yaml']
images:
- 'gcr.io/$PROJECT_ID/amar-test-yaml'
Project ID: yyyyyyy
Operation: {"metadata":{"@type":"type.googleapis.com/google.devtools.cloudbuild.v1.BuildOperationMetadata","build":{"id":"99dde488-c68a-420a-b7fd-9c604dc0ce6c","status":"QUEUED","createTime":"2021-02-09T12:18:58.139821817Z","steps":[{"name":"gcr.io/cloud-builders/docker","args":["build","-t","gcr.io/yyyyyyy/amar-test-yaml","/bitnami/jenkins/jenkins_home/workspace/amar-test-yaml/Dockerfile"]},{"name":"gcr.io/cloud-builders/docker","args":["push","gcr.io/yyyyyyy/amar-test-yaml"]}],"timeout":"600s","images":["gcr.io/yyyyyyy/amar-test-yaml"],"projectId":"yyyyyyy","logsBucket":"gs://00000000000.cloudbuild-logs.googleusercontent.com","options":{"logging":"LEGACY"},"logUrl":"https://console.cloud.google.com/cloud-build/builds/99dde488-c68a-420a-b7fd-9c604dc0ce6c?project=950788658769","artifacts":{"images":["gcr.io/yyyyyyy/amar-test-yaml"]},"queueTtl":"3600s","name":"projects/000000000000000/locations/global/builds/99dde488-c68a-420a-b7fd-9c604dc0ce6c"}},"name":"operations/build/yyyyyyy/OTlkZGU0ODgtYzY4YS00MjBhLWI3ZmQtOWM2MDRkYzBjZTZj"}
Checking build status: QUEUED
Checking build status: WORKING
Checking build status: WORKING
Checking build status: FAILURE
Cloud Build failed. Status: FAILURE
 -> null
Log URL: https://console.cloud.google.com/cloud-build/builds/99dde488-c68a-420a-b7fd-9c604dc0ce6c?project=00000000000
ERROR: Cloud Build failed
Finished: FAILURE

以下は google-cloud-build ログの出力です

Already have image (with digest): gcr.io/cloud-builders/docker
unable to prepare context: path "/bitnami/jenkins/jenkins_home/workspace/amar-test-yaml/Dockerfile" not found
4

0 に答える 0