feat(ci): add bitbucket-pipelines.yml#1
Open
pablovilas wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
This pipeline installs That failure was reproduced live on a real Bitbucket pipeline before the fix. The fix is nullplatform/cli#196. Please do not merge this until that lands and ships in a release (and, for the kaniko templates, until Verified live once the patched CLI is in place: a Bitbucket push produces a green nullplatform build with a docker asset — both the kaniko shape and the |
pablovilas
force-pushed
the
feat/bitbucket-pipelines
branch
from
July 19, 2026 18:12
e8829a2 to
050ea3a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
bitbucket-pipelines.yml, implementing the nullplatform CI contract(
np build start-> build ->np asset push->np build update) on Bitbucket Pipelines.Templates ship every provider's CI file at once and each SCM only reads its own path, so this
file is inert on GitHub, GitLab and Azure DevOps. No existing CI file is modified.
No Bitbucket marketplace app and no custom pipe are required. Unlike the Azure DevOps
integration (which needs a published extension for the
NullplatformParameter@0task),Bitbucket lets a step name any public image directly, and
public.ecr.aws/nullplatform/np-cli:kanikoalready ships
/npand/kaniko/executor. Nothing new to build, publish or install.Failure reporting
Bitbucket has no
if: always()and nowhen: on_failure. A failed build is reported fromafter-script, which always runs and is the only placeBITBUCKET_EXIT_CODEis defined.Note the spelling: Bitbucket uses
after-script(hyphen); GitLab usesafter_script(underscore). Bitbucket silently ignores unknown keys, so the underscore spelling would mean the
failure path never runs — failed builds would hang in
in_progressforever while the pipelinelooked green.
Verification
The pipeline shape was proven end-to-end against the real platform before this PR: a Bitbucket
push produced a green nullplatform build (
successful, with adocker-imageasset, repositoryURL / branch / commit all auto-inferred), and the
after-scriptBITBUCKET_EXIT_CODEguard wasobserved firing on a failing step.
This file was additionally validated locally: it parses, its multi-line commands fold into the
intended single shell commands, and the full CI contract (start -> asset push -> successful, plus
the failure guard) is asserted mechanically.
Depends on
NULLPLATFORM_API_KEYrepositoryvariable at provisioning time (workflow-manager). Pipelines is off by default — a
bitbucket-pipelines.ymlin a repo with Pipelines disabled is completely inert: no run, noerror, no UI hint.
npCLI Bitbucket repository-URL inference (AutoInferBuildFlags).