Onjection Jenkins
Onjection Jenkins
by Onjection Labs

VERSION 2.164.3

OS Ubuntu 16.04

Description

One click Onjection Jenkins provides production ready CI/CD tool. This is compatible with different DevOps tools required for code scanning, code building, code testing and code deployment. Writing a declarative pipeline is easy now using shared libraries. Onjection Jenkins is integrated and configured with many Plugins - Docker, Bitbucket, SonarQube Scanner, Gradle, Blueocean, Junit, Kubernetes pipeline, Logstash, Nodejs, Role Based Auth, Git, JDK, Ant, Maven, Shared Libraries

Software Included

PackageVersionLicense
Jenkins2.164.3MIT License
Docker CE18.09.6Apache 2
OpenJDK1.8.0_212GPLv2

Getting started after deploying Onjection Jenkins

Configuration on first boot
On first boot user ask to set Jenkins Admin password interactivly. and hit command to start Jenkins: systemctl restart jenkins

Access Jenkins GUI
Jenkins can be accessible on: http://<VM-PUBLIC-IP>:8080
Jenkins home is under: /var/lib/jenkins/

Start stop Jenkins
systemctl start jenkins # Start Jenkins
systemctl stop jenkins # Stop Jenkins
systemctl restart jenkins # Restart Jenkins

How to use shared libraries:

Clean the workspace and show which user trigger this jenkins pipeline:
Initialize_Workspace('<Stage_Name>')

Checkout the code from SCM (git,bitbucket, github etc.)
CheckOutScmAuto('<Stage_Name>')

If user want to clone the other/multiples git repositories.
CheckOutScm('<Stage_Name>',<SonarQube server URL/IP>, <Sonar server project name>, <Sonar server project key>)

SonaQube server code scanning
SonarScan(' <Stage_Name>, <SonarQube server URL/IP>, <Sonar server project name>, <Sonar server project key>', '<code dir path>')

SonarQube quality gates (if Bypass Argument set to true, then this particular stage will bypass even with failure)
SonarQualityGates(<Stage_Name>, <Bypass Argument>)

Provide env to build the code. If Bypass Argument set to true, then this particular stage will bypass even with failure
SetEnvironment(<Stage_Name>,<Image_Name>,<Commands>, <Bypass Argument>)

Publish the Jmeter result to jenkins
JmeterPublish('<Stage_Name>, <Jmeter report path to publish result in Jenkins>')

To compile and build the code using apache maven. If Bypass Argument set to true, then this particular stage will bypass even with failure
MvnStyleBuild('<Stage_Name>, <Maven code directory path>, <maven arguments, <Bypass Argument>')

To archive the artifacts for later use
ArtifactArchive('<Stage_Name>, <Artifact path>')

Publish Junit scan code report to Jenkins
JunitPublish('<Stage_Name>, <Junit repost path to publish result in Jenkins>')

Build the Docker image from Dockerfile. It is assume that Dockerfile is already present in code
DockerBuild('<Stage_Name>, <Docker image name with tag>')

Push the docker image to registry
DockerPush('<Stage name>, <registry saved credentials id in Jenkins>, <Registry url>, <Docker container image name>')

To only perform steps if git branch is master
OnlyMasterSteps()

Gracefully stop the pipeline if pipeline run from other then git master branch
StopOtherThanMaster()

Deployment of docker image to remote host
RemoteDockerDeploy('<Stage name>, <SSH host ip>, <SSH username>, <SSH password>, <deployment commands>')

Deploy to Kubernetes cluster
KubernetesDeployment('<Stage name>, <Kubernetes cluster name>, <Kubernetes API end point>, <Saved secret token id in Jenkins>, <Deployment commands>')

API Creation

In addition to creating a Droplet from the Onjection Jenkins 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB Onjection Jenkins Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.


  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"onjection-jenkins-16-04"}' \
      "https://api.digitalocean.com/v2/droplets"
      

Support Details

Supported By:Onjection Labs
Hours:9AM - 6PM IST
Support URL:http://www.onjection.com/contact-us/
Support Email:onjectiondevops@gmail.com

Learn More

Product Docs

Technical overviews, how-tos, release notes, and support material

Tutorials

DevOps and development guidelines

API Docs

Run your resources programmatically

Ask a question

Connect, share and learn