Just exploring Habitat and trying to get an on-premise builder working.
- Installed on-premise habitat builder sucessfully
- Integrated OAUTH with BitBucket successfully
So, I read somewhere that auto-build on commit of repo was not supported for any repositories other than GitHub.
So, I wanted to build a Bamboo pipeline to test the workflow of code commit -> build/package -> upload to builder/depot -> and auto-update a running application using bitbucket as a source control repository.
So trying to build my package with
hab studio build and it fails with the following:
» Binlinking sh from core/bash into /hab/studios/src/bin ★ Binlinked sh from core/bash/4.3.42/20170513213519 to /hab/studios/src/bin/sh hab-studio: Building '' in Studio at /hab/studios/src (default) hab-studio: Exported: HAB_AUTH_TOKEN=[redacted] hab-studio: Exported: HAB_ORIGIN=[redacted] hab-studio: Exported: HAB_BLDR_URL=[redacted] Usage: record <SESSION> [CMD [ARG ..]]
Any ideas what is wrong? Seems like
hab studio build has issues.
How do you build habitat packages from an external script? Does anyone have any samples that you are willing to share?