Skip to main content

CI/CD PIPELINE : JENKINS


JENKINS

How to build Jenkins JAR?





Create a Seed Job that Pulls your DSL

  1. From the top navigation menu of Jenkins, select Jenkins > New Item
  2. Give the project a name. For example, we entered Seed Job.
  3. Select the Freestyle project option.
  4. Under Source Code Management of the job configuration page, select Git and then fill in the required information.
  5. Under Build of the job configuration page, click Add build step and then select Process Job DSLs.
  6. Ensure Look on Filesystem is selected under Build.
  7. In the DSL Scripts text field, enter the name of the groovy file you want to use. If you have a collection of DSLs organized in directories, you can enter **/*.groovy to run all DSL files.
  8. Click Save at the bottom of the job configuration page.
  9. Build your seed project to pull the DSL files and create your jobs.

 




STEP 1: Download war or installer



STEP 2 : Place war in  home/jenkins directory & run 
home/jenkins : java - jar jenkins.war 
home/jenkins java - jar jenkins.war --httpPort=8081


Default plugins with jenkins 2












Once all plugins are installed ,you'll be prompted to create first user

Once user is created ,you/ll be navigated to jenkins dashboard












The other way to run jenkins is is docker 

------------------to do-------------------


Creating your build applications for CI/CD pipeline
A job is a task to be executed ,task can be list of commands ,These commands are related to default of additional plugins that are installed. 
After Jenkins is installed ,our task is to configure continuous integration















Step 1: Create Job, choose the type of project 



Types of jobs





























Workspace view






























Comments

Popular posts from this blog

Microservices Design patterns

What are microservices? Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are Highly maintainable and testable Loosely coupled Independently deployable Organized around business capabilities Owned by a small team The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organization to evolve its technology stack. You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also integrate with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returni...

GraphQL

What is GraphQL  API Standard invented & open-sourced by Facebook Alternative to  REST API  enables declarative data fetching  exposes single endpoint & responds to queries How it works?  Why Graphql? Improvises performance by reducing the data that is to be transferred over the internet Variety of different frontend frameworks and platforms on client-side Fast development speed & expectation for rapid feature development Why Graphql is better than REST? Flexibility & efficient  No more over /under fetching of data Over fetching : Under fetching: Insightful analytics  Schema serves as contract between client and server CORE CONCEPTS : SDL :SCHEMA DEFINITION LANGUAGE Writing Data with mutations 3 kinds of mutations creating new data updating existing data deleting existing data

Jackson

<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId> jackson-core </artifactId> <version>2.9.6</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId> jackson-annotations </artifactId> <version>2.9.6</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId> jackson-databind </artifactId> <version>2.9.6</version> </dependency> CBOR encoded data with Jackson <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-cbor</artifactId> <version>2.9.6</version> </dependency> In order to read and write MessagePack encoded data <dependency> <groupId>org.msgpack</groupId> <artifactId>jackson-dataformat-msgp...