Blog

Jitsi Meet Build Automation

May 1st 2020

Jitsi Meet Build Automation using Jenkins in Ubuntu

Building jitsi-meet manually everytime you do a customization would be a waste of time. You can automate jitsi meet build process using jenkins and gitlab.

  1. Install jenkins

    apt install openjdk-8-jdk -y
    wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
    sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
    apt update
    apt install jenkins -y 
    http://your_server_ip_or_domain:8080
    cat /var/lib/jenkins/secrets/initialAdminPassword
    
  2. Change jenkins home path to /opt/

    sudo su
    /etc/init.d/jenkins stop
    cd /opt
    mkdir jenkins
    chown -R jenkins:jenkins jenkins/
    sudo -u jenkins cp -r /var/lib/jenkins/* /opt/jenkins/
    vim /etc/default/jenkins
    change JENKINS_HOME
    JENKINS_HOME=/opt/$NAME
    /etc/init.d/jenkins start 
    
  3. Generate ssh key

    su jenkins
    cd /opt/jenkins
    mkdir .ssh
    cd .ssh/
    ssh-keygen
    
  4. Add public key to the git lab repo

    https://gitlab.com/username/jitsi-meet/-/settings/repository#js-deploy-keys-settings
    
  5. Create free style project on jenkins and add private key there which you generated at step 3
  6. Generate secret token from build trigger section and create a gitlab webhook.
  7. Use below script to build shell

    node -v
    npm i
    make
    

Subscribe