Onjection Jenkins
Onjection Jenkins
by Onjection Labs

Version 2.164.3

OS Ubuntu 16.04



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

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:

Checkout the code from SCM (git,bitbucket, github etc.)

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

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

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"}' \

Support Details

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

More DigitalOcean Links

DigitalOcean Community

Developers supporting developers

Ask a Question

Ask anything related to system administration, programming, devops, open source, or the DigitalOcean platform.

List your 1-Click App in the DigitalOcean Marketplace

Partner with us to build traction for your open source project or software company