Bamboo Specs troubleshooting
Bamboo Specs
On this page
Related content
- Crowd 0.4 Beta Release Notes
- Crowd 2.3.1 Release Notes
- Crowd 0.3.2 Beta Release Notes
- Naming versions for deployment releases
- Crowd 0.3 Beta Release Notes
- Upgrading Atlassian Bamboo - Video Tutorial
- Bamboo deployment status
- Understanding the Bamboo CI Server
- Managing deployment projects
- Bamboo Specs reference documentation
We've gathered answers to most common problems with Bamboo Specs.
Make sure you pushed your code to the Bitbucket Server
It's trivial but it really happens.
Make sure that Bitbucket Server and Bamboo are connected using application link
- Go to
> Application links
Make sure that Bamboo Specs processing is enabled in Bamboo
- Go to
> Security settings > Repository Stored Specs security settings > Enable Repository Stored Specs
Make sure that Bamboo Specs is enabled for a repository you pushed to
- Go to
> Linked repositories > <your repository>
- In the Bamboo Specs tab, enable Scan for Bamboo Specs.
Make sure that Bamboo Specs has access to projects or deployment projects you want to modify
- Go to
Administration > Linked repositories.
- Select your Bitbucket Server repository.
- Select Enable all projects access or make sure that your build or deployments projects are listed in that section. See Enabling repository-stored Bamboo Specs.
In case compilation fails during the first execution of Bamboo Specs, no plans or deployment projects are created or updated. As a consequence, Bamboo is unable to associate the Bamboo Specs with any plan, so you will not find an error log in any of the existing plans.
In case compilation fails not at first time, you can find "Specs execution error" on the build results page for the related plans.
Note that in both cases a committer of the change will receive an email with details of the error.
Compilation may fail due to two reasons:
errors in the source code
Check out the repository on your computer and build it yourself ("mvn compile" or import into IDE) to locate the error. These are usually code typos, wrong project dependencies or an outdated parent pom version.
- pom.xml has been sanitized by Bamboo
By default Bamboo Specs are executed with a defaultpom.xml
film, i.e. it will not usepom.xml
from yourbamboo-specs
project. For that reason, even if yourbamboo-specs
project compiles and runs correctly on your computer, it may fail in Bamboo. Make sure that:- it's sufficient to compile your project using
maven-resources-plugin
andmaven-compiler-plugin
only instead of using for instance extra plugins for code generation; don't rely on executing tests it's sufficient to compile your project with
bamboo-specs
andbamboo-specs-api
dependencies only - don't add extra dependenciesyour
pom.xml
inherits fromcom.atlassian.bamboo:bamboo-specs-parent
- it's sufficient to compile your project using
Repository-stored Bamboo Specs feature requires your project in the/bamboo-specs
directory will consist of only one Maven module. We do not support multi-module builds. So in case you put some Bamboo Specs classes in sub-modules of bamboo-specs
, they simply won't be built.
Committer of the change will receive an email with details of the error. You can also look up for "Specs execution error" on the build results page of the related plan(s). Most typical reasons are:
Insufficient permissions
Make sure that Bamboo Specs has access to projects or deployment projects you want to modify. It applies also to dependent projects, for instance:
- child plans triggered after a build - see plan's dependencies section,
- artifacts downloaded from a plan from another project.
Validation errors
Bamboo validates your plan configuration for correctness. It reports an error if any constraint is violated, such as: invalid project key, reference to non-existing repository or plan etc.
- Go to <Coghweel> Linked repositories.
- Select your repository.
- Click on the Bamboo Specs tab.
- Copy the webhook URL.
- In therepositoryyou want to use for storying Bamboo Specs, go to your repository settings.
- Find webhook-specific configuration.
Paste in the URL Bamboo provided you with.
- In the top navigation bar, click Projects.
- Select your project.
- Click Project settings > Bamboo Specs repositories.
- Select your repository and click Add.
- Go to settings the repository you want to use for storying Bamboo Specs.
- Find webhook-specific configuration.
Paste in the URL Bamboo provided you with.
Make sure that Docker is running. Alternatively, disable Bamboo Specs processing in Docker security settings, see Repository-stored Bamboo Specs security.
Related content
- Crowd 0.4 Beta Release Notes
- Crowd 2.3.1 Release Notes
- Crowd 0.3.2 Beta Release Notes
- Naming versions for deployment releases
- Crowd 0.3 Beta Release Notes
- Upgrading Atlassian Bamboo - Video Tutorial
- Bamboo deployment status
- Understanding the Bamboo CI Server
- Managing deployment projects
- Bamboo Specs reference documentation