Open MarkEdmondson1234 opened 3 years ago
It works using cr_build_make()
# your running successful build
build <- cr_build_make(build_yaml)
# create build API call
schedule_me <- cr_build_schedule_http(build)
# schedule the build
cr_schedule("r-2-git-demo", "5 15 1 * *", httpTarget = schedule_me)
#==CloudScheduleJob==
#name: projects/xxxx/locations/europe-west1/jobs/r-2-git-demo
#state: ENABLED
#httpTarget.uri: https://cloudbuild.googleapis.com/v1/projects/xxxx/builds
#httpTarget.httpMethod: POST
#userUpdateTime: 2021-01-01T07:21:44Z
#schedule: 5 15 1 * *
#timezone: Europe/Copenhagen
but not the object returned from cr_build()
or cr_build_status()
Examples like this work so its not authentication
It must be the parsing of the cloud build steps somehow, in cr_build_schedule_http()
This didn't work, but should:
The schedule gets created ok, but on execution there is an unhelpful error: