Hello,
I am pretty new to CircleCi and have bumped into a situation i cannot figure from the docs, orb source or community forum.
According to this doc https://circleci.com/docs/2.0/using-orbs/#using-orbs-within-your-orb-and-register-time-resolution i can create an orb that wraps the functionality of another orb.
I am trying to wrap this orb jfrog/artifactory-orb in my company specific orb because we have some site specific things that have to happen first.
I was able to get it partially working doing this. However i am using the command https://circleci.com/orbs/registry/orb/jfrog/artifactory-orb#commands-upload instead of the job by the same name (upload) - i would put the links here but new users can only put 2 links in a post?. I want to use the job because it allows me to pass the parameter workspace-path
.
version: 2.1
orbs:
some-orb: jfrog/artifactory-orb@1.0.1
executors:
some-executor: some-orb/default
commands:
some-command: some-orb/upload
some-other: some-orb/install
configure: some-orb/configure
jobs:
upload-stack-artifacts:
executor: some-executor
steps:
# can't get the workspace-path parameter in the orb to work
- attach_workspace:
at: .
- some-other
- configure
- some-command:
source: service_version
target: myartifactory.jfrog.io/services/servicex/20190621_133512/service_version
I tried various permutations of doing what is in the docs (my-job: some-orb/their-job) to call another job (upload) to no avail. For example
version: 2.1
orbs:
some-orb: jfrog/artifactory-orb@1.0.1
executors:
some-executor: some-orb/default
commands:
some-command: some-orb/upload
some-other: some-orb/install
configure: some-orb/configure
jobs:
upload-stack-artifacts:
executor: some-executor
steps:
- some-other
- configure
- my-job: some-orb/upload
source: service_version
target: myartifactory.jfrog.io/services/servicex/20190621_133512/service_version
It gives this error
Error: Unable to parse YAML
mapping values are not allowed here
in 'string', line 18, column 21:
source: service_version
^
Any tips on how to reuse the upload job in my orb appreciated.