buildpacks / pack-orb

A CircleCI Orb for using Cloud Native Buildpacks in CircleCI
https://circleci.com/orbs/registry/orb/buildpacks/pack
Apache License 2.0
12 stars 8 forks source link

Issues in the documentation #43

Closed MattPumphreyWorkRise closed 2 years ago

MattPumphreyWorkRise commented 2 years ago

So while trying out this orb, there seems to be some missing jobs and or other information. So I am trying to use build job but this does not actual exist in the source code, so that would be helpful.

One issue that I am having is I am trying to pass parameters in from the CircleCI default values, I keep getting the variable instead of the string that comes from the circleci variables:

in my orb, up a parameter that defaults to the CIRCLE_PROJECT_REPONAME and when I pass that into the image-name fields I get an error about unable to parse, and it displays the variable name and not the variable value, as such it makes that hard to adopt into my orb and wrap it with our defaults.

jromero commented 2 years ago

If I'm reading this correctly, it seems like your issue may be outside of the scope of the pack-orb. Could you provide a snippet of your config.yml?

Also, could you provide more details on this comment:

So while trying out this orb, there seems to be some missing jobs and or other information. So I am trying to use build job but this does not actual exist in the source code, so that would be helpful.

Have you seen the example usage here?

MattPumphreyWorkRise commented 2 years ago

I have seen the example, also I am curious as to how you got the "job" to show up even though there is not a folder for it under the src directory, which does not allow for that to be called. So according to the documentation generated by your orb you should have a job, but the actual job does not exist in your source, or if it does I have not been able to find it. ¯_(ツ)_/¯

jromero commented 2 years ago

The source for the job is here.

We don't use all parts of an unpacked orb. We use only examples and commands of the unpacked strcuture.

MattPumphreyWorkRise commented 2 years ago

I appreciate it, that might explain while trying to use the job that is defined, there didnt actually work to be used outside of that. Which is why only the commands are able to be used, kind of makes adoption a bit rough, just saying is all. Also explains some the of the other behaviors that I am seeing as we go down the path of making a custom job based off of those commands but not actually using those commands. Thanks.

jromero commented 2 years ago

Honestly, I'm not sure I understand. In what context are you trying to use the job since it should be usable as per the examples. Could you provide a config or other context?

kcirtapfromspace commented 1 year ago

copying the examples directly into a workflow only returns strings of errors.

Error calling workflow: 'build_test_and_deploy'
Cannot find orb 'buildpacks' looking for job named 'buildpacks/build'

cloudfoundry_circleci
130
Error calling workflow: 'build_test_and_deploy'
Cannot find a definition for job named build

cloudfoundry_circleci
129
Error calling workflow: 'build_test_and_deploy'
Error calling job: 'build'
Cannot find orb 'buildpacks' looking for command named 'buildpacks/build'

cloudfoundry_circleci
128
Error calling workflow: 'build_test_and_deploy'
Cannot find orb 'buildpacks' looking for job named 'buildpacks/build'

cloudfoundry_circleci
127
Error calling workflow: 'build_test_and_deploy'
Cannot find orb 'buildpacks' looking for job named 'buildpacks/build'

cloudfoundry_circleci
126
Error calling workflow: 'build_test_and_deploy'
Cannot find orb 'buildpacks' looking for job named 'buildpacks/build'

cloudfoundry_circleci
125
Error calling workflow: 'build_test_and_deploy'
Cannot find orb 'buildpacks' looking for job named 'buildpacks/build'

cloudfoundry_circleci
124
Error calling workflow: 'build_test_and_deploy'
Error calling job: 'paketo_build'
Cannot find orb 'buildpacks' looking for command named 'buildpacks/build'

cloudfoundry_circleci
123
Error calling workflow: 'build_test_and_deploy'
Error calling job: 'paketo_build'
Cannot find orb 'buildpacks' looking for command named 'buildpacks/build'
kcirtapfromspace commented 1 year ago

version: 2.1

orbs: pack: buildpacks/pack@0.2.4

executors: base-executor: docker:

workflows: main: jobs:

Error calling workflow: 'main' Cannot find orb 'buildpacks' looking for job named 'buildpacks/build'