Last updated: Jan 08, 2020 11:14
2 | Upload a Maven project to Bitbucket
- Log in to Bitbucket.
On your own work tab, click Create repository.Click to view image
- In a terminal window, do the following:
- Switch to your repository's directory.
Connect your existing repository to Bitbucket with the following git commands:
<username>refers to your Bitbucket username and
<repo name>refers to the name of your repo in Bitbucket.
3 | Set up a pipeline project in Bitbucket
- On the Pipelines tab, do one of the following:
Select your preferred sample pipeline and click Commit file to automatically start the pipeline. For more information, see this Bitbucket article.Click to view image
If you plan to reuse the bitbucket-pipelines.yml file or if you already have a pipeline in your project, click Enable.Click to view image
- Validate your
pipeline.ymlfile. You can use this validator.
On the Settings tab, under Repository variables, use the Name and Value fields to provide the following information. Make sure to select the Secured checkbox for each name/value pair to securely store the values from the console.Click to view image
- Optionally, manually trigger the pipeline as follows:
- On the Pipeline tab, click Run pipeline.
Select the branch and pipeline and click Run.Click to view image
- To schedule jobs in Bitbucket, see this Bitbucket article.
Review the results of the pipeline execution in the CI Dashboard view of the Perfecto UI.Click to view image
With Slack integration, you receive a link to the CI Dashboard in a Slack notification.Click to view image
To view the pipeline execution in our sample project, go to https://bitbucket.org/perfectops/maven_slack_bitbucketsample/addon/pipelines/home#!/results/2.