Hot answers tagged

9

There is currently no ability to restrict jobs which are able to run on the same agent from potentially interacting with each other. There are a bunch of feature requests asking for this sort of granularity, but if I understand your question correctly the most fitting request would be this one BAM-2504 Jira Ticket It's a huge gap in the product line, the ...


7

IMHO if your successful build doesn't push to an artifact repository, there's a problem in your pipeline. Jenkins or Bamboo do not aim at keeping built artifacts forever and they don't give you any versioning delivery, as such that's a point of failure in your delivery system. I'd advise to review your method to use an artifact repository and that will ...


6

I've created the jenkins-remote-builder script which will follow your remote build to completion. Some more details about it (from its README.md): Example jenkins=https://user:pass@jenkins.mydomain.com:8080 jenkins_job=MyApp-Deploy environment=dev application=myapp revision=9fd71f63b351b8208264daf86d292ced580a2f60 ./jenkins_remote_trigger.sh \ ...


5

When setting up the remote trigger, you have to click "Block until the remote triggered projects finish their builds."


5

It is convenient to use Environment Variables to provide runtime configuration for such scripts. Especially when it contains secrets that you don't want to hold in any persistent storage or in version control. When you do actually have secrets, it is even better to use some kind of secret management system that will provide these secrets on request. One ...


3

Using task schedulers like Bamboo or Airflow have a lot of advantages over cron, particularly in their ability to recognize errors and process dependent tasks accordingly. By far the most common reason not to use them is that you simply haven't set up the infrastructure yet: some form of cron is installed on every Linux machine, and it's easy to add a new ...


3

Atlassian Labs have now provided this functionality as an add-on: https://marketplace.atlassian.com/apps/1219706/conditional-tasks-for-bamboo?hosting=server&tab=overview Only available for versions 6.7.1+


3

I think you have fundamentally misunderstood the relationship between plans, stages and jobs in bamboo. A good rule of thumb is to have a single repository of code, which is linked to a single build plan, which produces a single independent module. You may initially start out creating a single stage with a single job inside each single plan where you just ...


2

Stages group jobs inside plans. So technically they are cloned when the respective plans are cloned. Which means that missing the ability to clone a specific stage should be just a UX/usability/functionality issue, not a conceptual one. There might be a non-trivial implementation details when cloning stages - they may carry inside stage sequencing ...


2

This slide share gives an idea how to handle CasC in Bamboo. The presenter advocates to use yaml, but according to him there are also downsides.


2

I don't know if there is some GUI way to do this I am triggering the same plan in different ways from a REST request by using a variable To do this define a variable in the plan configuration variables ie myvariable in the REST request set bamboo.variable.myvariable to the value required ie "1" or "2" in the plan stage add a task of script and use the ...


2

I don't think Bamboo has that natively but there are plugins such as this one: (https://marketplace.atlassian.com/plugins/com.cobalt.cdpipeline.cdpipeline/server/overview). Atlassian also has a different product called Bitbucket pipeline (https://bitbucket.org/product/features/pipelines) that may be more similar to what you want but it's more of a ...


2

There is an improvement issue open for, I think, exactly what you're looking for: Bamboo should be able to group projects: Description I'm mulling over redoing our project heirarchy and grouping things a little more logically, and realize that being able to group projects in Bamboo would be brilliant. It's already stellar that each project can ...


2

Yes, you are correct. Bamboo will spawn the build containers on the agent that the build is running on (either Local, Remote, or, Elastic - depending on your configuration). In order for this to work the agent will require Docker to be installed and running.


2

Bamboo doesn't have a color status like Jenkins per say, but it does have a very similar build status indicated by a circle with a symbol within it. This status is available for both the entire build plan and for an individual build. For your GET request, you will want to use the same api calls that you are using to get the buildstate value to get a ...


2

It really depends on what information you are trying to "Radiate": For an off-the-shelf solution that integrates with everything you mentioned you could check out Prometheus. It has plugins for Jira, Bamboo, Jenkins, and SonarQube. You could also opt for something quite a bit simpler and use the built in dashboards for the tools you are trying to display ...


1

I believe both options are viable routes, but my preference is for Option 1 as I like having the "deploy plan" to be only concerned with starting a container using the built image.


1

Both Azure and AWS will have any container images built off their network pushed to their repositories using https which will encrypt the transfer (e.g. AWS ECR encryption). Both of these providers offer ways to encrypt the transfer of data into their non-container storage solutions (often via https) and then offer ways to encrypt the data at rest. Once it ...


1

There isn't a common protocol that exists on all the platforms for deployment. However, if you get an SSH server onto the windows platforms then you can use the same mechanisms in Bamboo to do the deployment, and potentially even use the same keys to secure it all. Windows SSHD - There are a few alternatives (https://serverfault.com/questions/8411/what-is-a-...


1

In your deployment project configuration for each environment you could add a task prior to the actual deployment which would take care of setting up the right configuration file. It could be a script simply copying/replacing the configuration file just as you currently do manually. The script could be invoked with some pre-configured argument to identify ...


1

I know that is not the clean solution everybody looks for and is a nasty workaround, but what worked for me was to squash all my deployment logic into a single Script Task (shell script) and then put the necessary conditions there, such as: if [ <put condition for terminate here> ] ; then exit 0 fi <Continue with other execution logic> In ...


1

You can manually stop a build in progress. From Stopping an active build: To stop an active plan build: Click Dashboard and then the All Plans tab. Click the 'Stop' icon next to the active plan you want to stop. It also appears possible to stop the build/deploy programmatically, using the REST API, more specifically making a DELETE request to the ...


1

Possible reasons for using cron over jenkins I am assuming you mean cron on a Linux system and not a Kubernetes CronJob Controller (https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/) 1) User permissions. Although you can work around this with Jenkins, it is possibly easier to run commands as arbitary users in cron 2) Provisioning of ...


1

In case someone else finds this question, I thought I'd mention Favorites. You can mark certain jobs as favorites, and then have those jobs appear on your "My Bamboo"-page. That's obviously just one group, but still it might help.


1

I don't know the inner of bamboo, but I assume it works like a bash script. What happens is that variables are replaced before execution, in bash that would be echo "echo $VAR" > test.sh and test.sh will only contain "echo" because VAR is replaced by it's value before the command is executed. If you want test.sh to contain echo $VAR you have to tell bash ...


1

So I am assuming that 1) you have a PC on your LAN. The PC can only talk to port 80 outgoing via a proxy 2) you have a bamboo server running a cloud service 3) you wish to initiate a connection from the bamboo server to the PC Don't get your hopes up but this answer https://stackoverflow.com/questions/19161960/connect-with-ssh-through-a-proxy explains ...


1

If you need to trigger a job from CLI and wait for its completion you can use "Jenkins CLI" (see here). However jenkins CLI does not support promotions so for them I came up with the following script: #!/bin/bash # Trigger a promotion and wait for its completion # # For triggering jobs jenkins cli is sufficient: https://support.cloudbees.com/hc/en-us/...


Only top voted, non community-wiki answers of a minimum length are eligible