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 - | sudo apt-key add -
    sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'
    apt update
    apt install jenkins -y 
    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
    /etc/init.d/jenkins start 
  3. Generate ssh key

    su jenkins
    cd /opt/jenkins
    mkdir .ssh
    cd .ssh/
  4. Add public key to the git lab repo
  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