Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

Side Menu

  • Overview
  • Roadmap
  • Work packages
  • News
  • Wiki
    • Table of contents
      • Hierarchy leafAI Tools for Development
      • Hierarchy leafDeployment To the Server(Modified)
      • Hierarchy leafHosting BTCPayServer in Linux server
      • Hierarchy leafHow to overcome bitbucket login problem (Windows)
      • Expanded. Click to collapseCollapsed. Click to showInstalling a project in Elintegro
        • Hierarchy leafPipeline setUp for Bitbucket
      • Expanded. Click to collapseCollapsed. Click to showInterview University
        • Expanded. Click to collapseCollapsed. Click to showDocker: Install an Elintegro App within Linux server
          • Hierarchy leafConnect to Docker of Omnipay
      • Expanded. Click to collapseCollapsed. Click to showKafka Installation Guide
        • Expanded. Click to collapseCollapsed. Click to showComparing Kafka with other topic technologies
          • Hierarchy leafDesign a messaging app, high level, using kafka
      • Hierarchy leafOpen Project
      • Hierarchy leafRebase with Development Branch
      • Hierarchy leafRemote Debugger with IntelliJ
      • Hierarchy leafUpgrading Elintegro apps to Grails 6
You are here:
  • Installing a project in Elintegro
  • Pipeline setUp for Bitbucket

Content

Pipeline setUp for Bitbucket

  • More
    • Table of contents

To create the pipeline for bitbucket, we need two files i.e deploy.sh(can create for staging and production) and bitbucket.pipeline.yml in our application.

  • Make a directory called deployment and create the sub directory for stage and production and added the file deploy.sh inside the sub directory in our application as below:
  • To create the bitbucket.pipeline.yml , the file is  provided by the bitbucket just we need to commit that file from the bitbucket and we can add required process to deploy through the pipeline.
  • First, we need to create the private key from the local using the command ssh-keygen in your terminal and that will create the public key(id_rsa.pub) and private key(id_rsa).
    After creating the private key we can go the local file manager and go to Local Disk C and users and admin then .ssh directory and you will find the key we generated which shows like this:
  • 1. After that copy the private key(id\_rsa) and go to the bitbucket 2. Go to the Repository settings and click the Repository variables then you will see the input field for key name and value, then add SSH\_PRIVATE\_KEY as a name and paste the copied private key in the value. 3.
    4. Now, Enter in the server and go to  vim ~/.ssh/authorized\_keys and paste the public key from id\_rsa.pub.Now the pipeline and server are ready to interact.
  • After adding the private key in the bitbucket and server, we need to add the fingerprint in the bitbucket for the server.To do that
    1. Go to the Repository settings and click the SSH keys.
    2. You will see the known hosts with the input field i.e host address and the button called fetch
    3. Add the ip of the server in the host address and click fetch.
Loading...