Code Monkey home page Code Monkey logo

octopus-bamboo's Introduction

Octopus Deploy Bamboo Plugin

Documentation

https://octopus.com/docs/api-and-integration/bamboo/bamboo-plugin

SDK Installation

This plugin used the Atlassian SDK. You can find more information about how to install and run the SDK from https://developer.atlassian.com/display/DOCS/Introduction+to+the+Atlassian+Plugin+SDK

Updating Bamboo Dependencies

Edit the pom.xml file and set <bamboo.version>6.2.1</bamboo.version> and <bamboo.data.version>6.2.1</bamboo.data.version> (the actual versions will be different to these examples) to the latest Bamboo version. This in turn will mean atlas-run will load the specified Bamboo version.

You can find the versions that are available at https://maven.atlassian.com/maven-external/com/atlassian/bamboo/atlassian-bamboo-web/.

Running Bamboo

Run the command atlas-run to start an instance of Bamboo with the plugin deployed.

The credentials are admin / admin.

If Bamboo fails to start running atlas-clean may resolve the issue.

Note there is a bug in AMPS 8.0.0 that means atlas-run doesn't work. See https://ecosystem.atlassian.net/browse/AMPS-1479 for details. The workaround is to run

mvn com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.0.0:run -gs C:/Applications/Atlassian/atlassian-plugin-sdk-8.0.4/apache-maven-3.5.4/conf/settings.xml

Debugging Bamboo

Run the command atlas-debug to start an instance of Bamboo with the plugin deployed and debugging enabled.

Create a Remote Debug configuration as below.

Once the atlas command has the server to the point where it is fully running, you can start the Remote Debug configuration and IntelliJ will attach to the running process.

Testing changes on a remote Bamboo build agent

Taken directly from Atlassian's Bamboo remote agent installation guide.

1. Enable remote agent support
  • Click the cog icon in the Bamboo header and choose Overview.
  • In the left-hand panel, under Build Resources, click Agents.
  • Click either Enable Remote Agent Support or Disable Remote Agent Support.
2. Download and install the remote agent
  • Create a directory on the agent machine (e.g. bamboo-agent-home) to serve as the Bamboo agent home for the remote agent.
  • Click the cog icon in the Bamboo header and choose Overview.
  • In the left-hand panel, under Build Resource, click Agents in the left panel.
    • The 'Agents' screen displays showing the lists of all local agents and all remote agents that currently exist on your Bamboo system.
  • If not already enabled, click the Enable remote agent support link
  • Click Install Remote Agent. The 'Installing a remote agent' screen will display
  • Click DOWNLOAD Remote Agent JAR and save the JAR file to the directory on the agent machine that you created above.
  • Copy the command under 'Running a Remote Agent' to the clipboard for use in Step 3 that follows.
3. Launch the remote agent

Once installed, run the remote agent by executing the command line obtained above. This command will look something like this:

java -jar atlassian-bamboo-agent-installer-<version>.jar http://bamboo-host-server:6990/bamboo/agentServer/

Building the Plugin

Run the command atlas-package to build the plugin. The compiled plugin will be saved as target\bamboo.jar.

Updating the Atlassian Marketplace

Keep in mind that the Bamboo plugin does not ship with the Octopus CLI tool. Updates to the CLI tool don't require that the Bamboo plugin be republished.

To update the marketplace, use the following steps.

  1. Build the JAR file. You can do this locally, or get the JAR file artifact from TeamCity.
    • Note that if you are building locally you will need to increment the version inside the pom.xml file before building (<version>1.0.3</version>). This version is used by the store to show the latest artifact to end users.
  2. Browse to https://marketplace.atlassian.com/manage/plugins/com.octopus.bamboo/versions. Use the [email protected] account - credentials are in the password manager.
  3. Click the Create version button.
  4. Follow the wizard to upload the JAR file. The wizard will show you a lot of pages relating to how the add-on is to be displayed, but you can keep the exiting content. The only requirement are some release notes.

octopus-bamboo's People

Contributors

benpearce1 avatar bogdangrigg avatar dependabot[bot] avatar hnrkndrssn avatar jbristowe avatar johnsimons avatar kevjt avatar matt-richardson avatar mcasperson avatar mik-ky avatar rain-on avatar slewis74 avatar team-integrations-fnm-bot avatar thedewi avatar uglybugger avatar zentron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

octopus-bamboo's Issues

Create Release task triggers Deployment

I have used the add-on and added the following tasks to my job:
Pack Package
Push Package
Create Release

But when the plan runs, it is automatically deploying my project!

I do not have any automatic deployment triggers set up, all i want is a new release ready for deployment.

it may be related, but the descriptions on the tasks are duplicated as well.
image

Atlassian Support for Server products ends on Feb. 15, 2024

Atlassian has announced that they are ending support for their Server products which includes Bamboo.

Unfortunately, there is no cloud version of Bamboo so the only option for customers running Bamboo is to use the Data Center version which means they won't be able to use our plugin as it is not listed as compatible with Bamboo Data Center.

There are some additional steps required, most notably we need to submit a technical review for the plugin, before we can list our plugin for use in Bamboo Data Center, full process listed here.

API Key visible in dev tools

image

I couldn't find any previous issues/prs referencing this and it wasn't mentioned in the release notes of the release 5 days ago. Apologies if it's already been fixed.

Plugin Version: unsure
Bamboo: 7.1

Repro:

  1. Add a "Push package" step to the template and fill in the required details.
  2. Save the step.
  3. Exit the page.
  4. Reopen the page and navigate to the step you created.
  5. View the API key in developer tools.

Expected behaviour: the API key is masked to prevent users stealing API keys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.