I am new to GCP and Jenkins, and I am trying to find a simple example on how to deploy a basic cloud function using Jenkins programmatically.
Like, is there a simple example on how to do this using "Hello World?"
Please help me with this, as I cannot find an example.
I have referred to this: Jenkins on GCE - Deploying Google Cloud Function to different GCP project
But, I am not sure what to do.
Related
I have a Jenkins and Gerrit server running in k8s and docker respectively, however I am stuck at trying to integrate both services together.
I've tried following these two manuals.
https://www.infoq.com/articles/Gerrit-jenkins-hudson/
https://nofluffjuststuff.com/magazine/2016/06/understanding_and_applying_gerrit_part_4_integrating_jenkins_with_gerrit
But they seem well out of date.
Anyone know any good documentation out there to integrate Jenkins and Gerrit?
I've got an existing FargateCluster with a running service and a running task definition created by the great aws-cdk.
I wonder what is the best way to deploy a new docker image to this existing Fargate-Service within a seperate AWS CDK routine/script/class? The docker image gets a new version (not latest) and I like to keep all the parameters configured in the existing task-definition and just deploy the new docker image. What I like to do in detail is geting the existing task-definition and just change the name of the image and let Fargate deploy it.
Is there any working example for this?
Any help will be appreciated.....
Regards
Christian
I would suggest exploring using Codepipeline to deploy your app in this case.
There's a very specific codepipeline action to Deploy ECS Fargate images.
If you want to start writing your own pipeline, check the standard Codepipeline package or try the cdk specific Pipelines package.
Other option would be to rerun your existent deployment and let CloudFormation deal with the changes.
I'v been sending new versions of app in docker images to GCP Container Registry, now I wanted to create a jenkins job that when picked Build with Parameters gives you a list of let's say last 15 tagged images, and let's you choose which version of app to deploy - the entire logic how to deploy etc. I can handle, but I'v been thinking how to live display those versions, anyone have any idea ? I know about the Active Choice Parameter and there is a Groovy Script section - I used it before to list GIT Branches - but not sure how to authenticate to GCP and run
gcloud container images list-tags gcr.io/my/image
inside the Groovy Script or some other alternative
EDIT:
I see the Amazon version of plugin that can do it, but no sight of GCP one. So I guess good old scripts are the only option.
I think I Know the answer and will just have to create Service Account for it but maybe someone will come with better solution
I'm new to Bamboo and currently learning & using the Bamboo as a standalone server in my company. There I can see the much-advanced options like creating the Build Plans, separate deployment projects based on different environments and also can integrate with notifications and triggers.
I wanted to do a lot of research and learning by myself at home so I was looking for a cloud-based version of Bamboo which I can straight away use to perform similar task like creating build plans, etc. I do not see anything cloud version of Bamboo but I can see BitBucket (cloud-based). What I know is that it is a source code repository like GitHub and GitLab and it has integration with inbuilt CI/CD.
Q1. Is BitBucket a cloud version of source code repository plus Bamboo?
Q2. If not, then do we have cloud version of Bamboo with exact options like build plans, deployment projects, etc
Q3. Also, I'm looking if there is any Bot which I can use like SlackBot or DeployBot to invoke or trigger the Bamboo Build Plan with a chat command? Slack I'm familiar but not DeployBot. I can get the Bamboo build notifications to my Slack channel but not the other way around.
I'm learning and doing research & development hence required clarification on my doubts from experts in this DevOps field to show me the right path.
Please suggest as I'm looking for setting up Bamboo with Bot instructing my build plans.
Thank you
Doing hands-on experience in company on Bamboo and learning as much as I can and playing around with it.
Bamboo Cloud was discontinued in January 2017. Bitbucket Cloud can still notify your Bamboo instance via webhook, assuming you configure Bamboo and your firewall and the webhook properly, or you can use Bitbucket Pipelines for the all-in-one approach.
You can also use Bitbucket Server if you'd prefer to keep everything behind the firewall.
I understand today we can use Github, Atlassian Bitbucket (Cloud) and Google Code Repository. Is it possible to use BitBucket Server? We do have network connectivity to the BitBucket Server from the GCP Project where we'll be doing Container Builds.
Any documentation / pointers will be greatly appreciated. I want to use Google Container builder but this is currently the biggest obstacle.