Post commands for SAM Build plugin
under review
P
Psychological Firefly
I would like the ability to run commands inside the container of the SAM Build plugin after the build is completed, specifically jfrog build-info commands, (jf bce, jf bag, etc) to be able to append build environment/git information to a jf build that is destined for a release bundle.
I don't think we can run these commands in the actual container that builds the code because we are using the
--use-container
option for sam build, but running them inside the runner image will be more accurate than running them in a separate step entirely.Log In
N
Nofar Bluestein
under review
P
Psychological Firefly
For the "jf rt bce" command specifically, we're looking to capture the environment variables that are used during the actual build, hence running it in the SAM Build container itself. A potential workaround is to duplicate all the environment variables used in the build step to another custom step that runs "jf rt bce", but this feels clunky.
Also, I've had more success with the jf builds if all the commands are run in a single container, rather than spread across multiple. Ideally we could run the full jf build sequence at the same time as building the artifact:
jf rt bce
jf rt bag
jf rt u
jf bp
For now I have this command sequence in a separate step running after the build. For containers this is easier to accomplish because we have access to the compilation commands either through the Dockerfile or a custom script step.
Hope this makes sense
N
Nofar Bluestein
pending feedback
N
Nofar Bluestein
Hey Will, we have a plugin that updated build metadata of published JFrog Artifactory artifacts. Would that be helpful to you?
See more information in :