Jenkins Setup
git clone https://github.com/project-sunbird/sunbird-devops.git cd sunbird-devops && git checkout tags/release-5.2.0 -b release-5.2.0 cd deploy/jenkins sudo bash jenkins-server-setup.sh
sudo bash jenkins-plugins-setup.shcp envOrder.txt.sample envOrder.txt vi envOrder.txt dev=0 staging=1 production=2 sudo bash jenkins-jobs-setup.shsudo service jenkins restartsudo su jenkins curl -SsL -o ~/jenkins.yaml https://raw.githubusercontent.com/project-sunbird/sunbird-devops/release-5.1.0/deploy/jenkins/jenkins.yaml # Replace all placeholders ${VALUE} with below mentioned values ${DOCKER_REGISTRY_URL} to the container registry URL which you would like to store the container images ${GH_USERNAME} to the github username which has access to the private repository ${GH_PASSWORD} to the github access token which has access to the private repository ${GH_PRIVATE_REPO_URL} to the private github repository URL where the environment variables and servers information is updated ${GH_PRIVATE_REPO_BRANCH} to the name of the private repo branch where the environment variables and servers information is updated ${GH_PUBLIC_REPO_BRANCH} to "release-5.2.0" ${KP_PUBLIC_REPO_BRANCH} to "release-5.2.0" ${DP_PUBLIC_REPO_BRANCH} to "release-5.1.0" vim ~/jenkins.yamlmkdir -p /var/lib/jenkins/secrets cd /var/lib/jenkins/secrets touch deployer_ssh_key vault-pass k8s.yaml chmod 600 deployer_ssh_key vault-pass k8s.yaml
Last updated