Jenkins For Beginners — Part 02

Jenkins is a powerful application that allows continuous integration and continuous delivery of projects, regardless of the platform you are working on. So this article series for beginners who wish to start with Jenkins.

How to Download & Install Jenkins on Windows

Jenkins may be installed on either Windows or Unix platforms, but we will focus on Windows installation only.

Prerequisites:

Before you proceed to install Jenkins in your windows system, there are some prerequisites for Jenkins to install Jenkins on your computer.

Hardware requirements:

  • You need a minimum of 256 MB of RAM on your computer or laptop to install Jenkins
  • You need at least 1 GB of space in your hard drive for Jenkins.

Software Requirements:

  • Since Jenkins runs on Java, you need either the latest version of Java Development Kit (JDK) or Java Runtime Environment (JRE).

Release Types

Jenkins releases two types of versions based on the organization’s needs.

  • Long-term support release
  • Weekly release

Long term support release (LTS) :

Long-term support releases are available every 12 weeks. They are stable and are widely tested. This release is intended for end-users.

Weekly release:

Weekly releases are made available every week by fixing bugs in their earlier version. These releases are intended for plugin developers.

We will use the LTS release though the process remains the same for the Weekly release.

How to Download Jenkins?

Following steps should be followed so that to install Jenkins successfully:

Step 1) Got to https://jenkins.io/download/ and select the platform. In our case Windows

Image for post

Downloading window

Step 2) Go to the download location from the local computer and unzip the downloaded package. Double-click on unzipped jenkins.msi. You can also Jenkin using a WAR (Web application ARchive) but that is not recommended.

Image for post

Step 3) In the Jenkin Setup screen, click Next.

Image for post

Step 4) Choose the location where you want to have the Jenkins instance installed (default location is C:\Program Files (x86)\Jenkins), then click on Next button.

Image for post

#jenkins #windows #installation #jenkins-pipeline

What is GEEK

Buddha Community

Jenkins For Beginners — Part 02

Jenkins Is Getting Old — It’s Time to Move On

By far, Jenkins is the most adopted tool for continuous integration, owning nearly 50% of the market share. As so many developers are using it, it has excellent community support, like no other Jenkins alternative. With that, it has more than 1,500 plugins available for continuous integration and delivery purposes.

We love and respect Jenkins. After all, it’s the first tool we encountered at the beginning of our automation careers. But as things are rapidly changing in the automation field, Jenkins is** left behind with his old approach**. Even though many developers and companies are using it, most of them aren’t happy with it. Having used it ourselves on previous projects, we quickly became frustrated by its lack of functionality, numerous maintenance issues, dependencies, and scaling problems.

We decided to investigate if other developers face the same problems and quickly saw the need to create a tool ourselves. We asked some developers at last year’s AWS Summit in Berlin about this. Most of them told us that they chose Jenkins because it’s free in the first place. However, many of them expressed interest in trying to use some other Jenkins alternative.

#devops #continuous integration #jenkins #devops adoption #jenkins ci #jenkins pipeline #devops continuous integration #jenkins automation #jenkins scripts #old technology

Jenkins For Beginners — Part 02

Jenkins is a powerful application that allows continuous integration and continuous delivery of projects, regardless of the platform you are working on. So this article series for beginners who wish to start with Jenkins.

How to Download & Install Jenkins on Windows

Jenkins may be installed on either Windows or Unix platforms, but we will focus on Windows installation only.

Prerequisites:

Before you proceed to install Jenkins in your windows system, there are some prerequisites for Jenkins to install Jenkins on your computer.

Hardware requirements:

  • You need a minimum of 256 MB of RAM on your computer or laptop to install Jenkins
  • You need at least 1 GB of space in your hard drive for Jenkins.

Software Requirements:

  • Since Jenkins runs on Java, you need either the latest version of Java Development Kit (JDK) or Java Runtime Environment (JRE).

Release Types

Jenkins releases two types of versions based on the organization’s needs.

  • Long-term support release
  • Weekly release

Long term support release (LTS) :

Long-term support releases are available every 12 weeks. They are stable and are widely tested. This release is intended for end-users.

Weekly release:

Weekly releases are made available every week by fixing bugs in their earlier version. These releases are intended for plugin developers.

We will use the LTS release though the process remains the same for the Weekly release.

How to Download Jenkins?

Following steps should be followed so that to install Jenkins successfully:

Step 1) Got to https://jenkins.io/download/ and select the platform. In our case Windows

Image for post

Downloading window

Step 2) Go to the download location from the local computer and unzip the downloaded package. Double-click on unzipped jenkins.msi. You can also Jenkin using a WAR (Web application ARchive) but that is not recommended.

Image for post

Step 3) In the Jenkin Setup screen, click Next.

Image for post

Step 4) Choose the location where you want to have the Jenkins instance installed (default location is C:\Program Files (x86)\Jenkins), then click on Next button.

Image for post

#jenkins #windows #installation #jenkins-pipeline

Kira  Nienow

Kira Nienow

1595181780

Jenkins — How Can We Get Started Jobs in Jenkins (Part 3)

In the previous article, we learned how to create Users + Manage + Assign Roles in Jenkins. In this article, I will be highlighting how can we create some basic JOBS in Jenkins. Furthermore, these are the points which I am going to explain.

  • How to create a basic Job in Jenkins.
  • Basic Job Configurations.
  • How to run the Job remotely.
  • How to chain Job Execution

How to create a basic Job in Jenkins?

First of all **click **on New Item on the Jenkins Dashboard. Then Give a name to your project. Then you can select a **Freestyle **or **Multi-configuration **project. For this tutorial please go with the Freestyle project. Then click on the **Okay **button.

As soon as you complete these simple steps you will be taken to the **configuration **window. Here you can provide different details about Jobs. There are 5 sections available. **General, Source Code Management, Build Triggers, Build, **and Post-build Actions.

Image for post

General Section

Here you can provide a quick description of your project or Job. You can preview it also. You can also use HTML tags inside the description.

Image for post

Source Code Management Section

So here in case you want to take the build from any source code system like Git, Bitbucket, or any other source code management portals. We need to add plugins to those source code repositories. But in the coming tutorials, we will see how exactly we can get our build and trigger our Job from a source code management system.

#jenkins-job-builder #jenkins #jenkins-pipeline

Alycia  Klein

Alycia Klein

1596715800

Jenkins Pipeline Groovy script - Part 2 Add a User to a Gitlab Group

My earlier post on Jenkins Pipeline Groovy script - Part 1 , discusses about how to create Gitlab group using Jenkins Pipeline Groovy script. In this post, I am discussing about how to add list of Users to newly created Gitlab group or existing group with specific permission granted to them. In companies while handling big projects and maintaining enormous code repositories, it is very much important to know what permissions supposed to be given to each member in the team.

Because giving wrong permission to team member, opens big path for problems if the team member really unaware about how efficiently the permission can be used for good purpose. Hence giving right permissions to the team member is very serious business for quick and reliable delivery. And yes, this also avoids team member intervening unnecessarily to the projects where they do not actually belong.

1. Gitlab User Restful API

Gitlab exposes it’s functionality via Restful APIs which can be consumed via curl script or any programming language like Groovy and Python., etc. To add user to Gitlab group, Gitlab Project members Restful APIs are consumed in this tutorial.

Adding group members to GitHub

So who are Users in Gitlab Project, Users are team members who work on code level changes as developer or owner to the specific Gitlab project repositories or can even play any role(mentioned section 1.1) depending on the project requirement.

1.1 Gitlab User Permission Level

Based on the responsibility and the role of the team members assigned in the project level, Gitlab offers following member permissions level.

  • Guest (10)
  • Reporter (20)
  • Developer (30)
  • Maintainer (40)
  • Owner (50)

Though the permission level varies for different role, all the users have permission to clone or download the project code, leave the comments and create the issues in Gitlab Project where they belong. suppose, if any of the team member leaves the project, merge request and created issues will be unassigned automatically.

2. Pipeline Groovy script to add user to Gitlab group

So how to add users to Gitlab group, my earlier post on Jenkins Pipeline Groovy script - Part 1, discusses on how to create Gitlab group using Pipeline Groovy script. Here I am explaining about how to add team members to a newly created Gitlab group or existing group. Let’s create groovy class with name addUserToGitlabGroup.groovy

What is this groovy class does:

  • Checks whether the user has access to Gitlab URL instance or not
  • Only if the user has access, then adds the user to mentioned Gitlab group with given access level

#groovy #gitlab #jenkins ci #jenkins automation #jenkins

Iara  Simões

Iara Simões

1628819733

Curso Intensivo de Svelte - Aprenda SvelteJS em 1 Vídeo

No vídeo de hoje o Léo apresenta pra gente o Svelte. Ele é um compilador que pode ser usar ao trabalhar com JavaScript.

Trazendo uma nova abordagem, o Svelte nos entrega o JavaScript puro ou Vanilla JS, não trabalha com DOM Virtual, nos ajuda a escrever menos código, usa a criação de constantes e variáveis pra te ajudar a ter um conteúdo reativo e ainda tem um processo de criação de projeto simples. Gostou? Então vem conhecer um pouco mais sobre ele e acompanha essa aplicação que o Léo construiu do zero pra esse vídeo.

00:00:00 Fala, pessoal
00:00:23 Disclaimer 
00:01:27 Introdução e Configuração do Projeto
00:05:49 Componente Botão #01
00:12:02 Componente Calculadora
00:17:44 Componente Botão #02
00:26:46 Componente Botão #03
00:30:25 Componente Tela #01
00:36:46 Componente Tela #02
00:43:52 Componente Tela #03
00:45:21 Evento Click e Reatividade
00:51:10 Reatividade na Prática
01:00:16 Calculadora Model #01
01:12:01 Calculadora Model #02
01:19:35 Calculadora Model #03 e Conclusão

#svelte #javascript