Bamboo Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 45: Line 45:
This is how you create a typical [[Bamboo_Concepts#Task|task]] for the [[Bamboo_Concepts#Default_Job|Default job]].
This is how you create a typical [[Bamboo_Concepts#Task|task]] for the [[Bamboo_Concepts#Default_Job|Default job]].


* Source Code Checkout: Tasks -> Add task -> Source Control -> Source Code Checkout. Task description: "GitHub checkout", Repository: pick from pre-configured, see [[#Repository|repository]].
'''Source Code Checkout'''
Tasks -> Add task -> Source Control -> Source Code Checkout. Task description: "GitHub checkout", Repository: pick from pre-configured, see [[#Repository|repository]].
 
 
 
* Command:  Tasks -> Add task -> Command. Task description: "Gradle build and publish command", Executable: Gradle4, argument:
* Command:  Tasks -> Add task -> Command. Task description: "Gradle build and publish command", Executable: Gradle4, argument:
  clean build publish
  clean build publish

Revision as of 18:08, 7 December 2018

Internal

Plan Operations

Create a Plan

A plan can be created and configured any time after creation of the enclosing the project:

Projects -> the project in question -> Select the Plan -> Actions drop down -> Configure plan.

Configuration options when creating the plan:

  • Project
  • Plan name
  • Plan key
  • Plan description
  • Plan access - allow all users to view this plan
  • Link repository to new build plan. The repository can be specified during the plan creation process, or later. The process is similar to the one described in the "Repository Operations" section.

Repository Operations

To add a repository to a plan:

Project -> Plan -> Actions: Configure plan -> "Repositories" tab -> Add Repository -> Git repository (see difference between Git and GitHub repositories)

Display name: up.plat-svc.cryptm. Use the name of repository.

Repository URL: git@github.com:test-inc/up.plat-svc.cryptm.git

Authentication type: SSH private key

Use shared credentials, shared credentials: Github Bamboo User SSH

Branch: develop (if nothing is specified, it assumes "master")

Test Connection

Repository access: Allow all users to reuse the configuration of this repository.

Save Repository.

Create a Typical Task

This is how you create a typical task for the Default job.

Source Code Checkout Tasks -> Add task -> Source Control -> Source Code Checkout. Task description: "GitHub checkout", Repository: pick from pre-configured, see repository.


  • Command: Tasks -> Add task -> Command. Task description: "Gradle build and publish command", Executable: Gradle4, argument:
clean build publish
  • JUnit Parser: Tasks -> Add task -> JUnit Parser. Task description: "Parses JUnit test results", Specify custom result directories:
**/test-results/test/*.xml
  • Command: Tasks -> Add task -> Command. Task description: "Clover file converter", Executable: CloverConverter, argument:
clean build publish
  • Command: Tasks -> Add task -> Command. Task description: "SonarQube", Executable: Gradle4, argument:
sonarqube  -Dsonar.branch.name=${bamboo.repository.git.branch} -Dsonar.projectKey=up.plat-svc.cryptm  -Dsonar.organization=test-inc   -Dsonar.host.url=https://sonarcloud.io  -Dsonar.login=...