I want to use SEED CLI from Bitbucket Pipelines to...
# seed
a
I want to use SEED CLI from Bitbucket Pipelines to trigger a pipeline in SEED. I need this due my SEED is configured with SST project, but my frontend is managed on Bitbucket. I’m running this command:
Copy code
+ seed deploy --org ${SEED_ORG} --app ${SEED_APP} --stage ${SEED_STAGE}
But getting this error:
Copy code
Missing required argument: commit
Is there a way I can point it to “the latest commit”? The branch would be configured on the Stage already. Is this possible?
Well, tested adding:
Copy code
--commit HEAD
But apparently that is pulling the default branch? should I put…
Copy code
branch/HEAD?
But if my stage is already connected to a branch, why is not respecting that?
I want to trigger this pipeline from CLI.
f
Hey @Adrián Mouly, you should be able to pass in a branch name for --commit.
a
I’ve tried 2 ways but it didn’t work.
f
Let me know if that works.
a
How is the convention?
Tried..
sst-reorder/HEAD
.
f
is sst-reorder the branch name?
a
Yes.
Like the screenshot.
f
can you try --commit sst-reorder
a
Ok I can try that.
f
it takes a git ref. So commit hashes, tags and branch names should all work.
a
Oh nice.
Maybe
commit
is not clear enough.
But well, git it’s all about pointers anyway.
f
Yeah good point. Maybe accept --commit or --branch or -- tag
a
Yeah that could be nice.
Not sure what other tools does.
But anyway, love having this CLI, this allows me to have multi-repo with BB Pipelines + Seed.
f
👍