Build a Library and Poll for Completion
A 5-step recipe with Adobe Launch. We can help you get access.
Recipe · 5 steps
Build a Library and Poll for Completion
with Adobe Launch · Continuous Integration Management
Assemble a library, build it, and wait for the asynchronous build to complete.
- Create a new library under the property.
- Add the supplied rule to the library's set of rule resources.
- Assign the library to an environment so it can be built and published.
- Compile the assembled library into a build.
- Retrieve the build by id and retry while it is still pending; branch to success or failure once the build settles.
What you'll need to have ready
- accessToken: OAuth 2.0 Server-to-Server bearer access token from Adobe Developer Console.
- apiKey: Client ID credential sent as the x-api-key header.
- imsOrgId: Adobe Organization ID sent as the x-gw-ims-org-id header.
- propertyId: The property the library is created under.
- libraryName: Human-readable name for the new library.
- ruleId: Id of an existing rule to add to the library.
- environmentId: Id of the environment to publish the library into.
For your developer
Arazzo workflow adobe-launch:library-build-and-poll, 5 operations: createLibrary → addResourcesToLibrary → setEnvironmentForLibrary → postLibrariesByLibraryIdBuilds → getBuildsByBuildId. Specs on APIs.io.