yuval.guide
open-menu closeme
courses
topics icon
linux bash python git containers k8s aws terraform checkpoint jenkins prometheus
About
github linkedin
  • Trigerring Multibranch Pipelines

    calendar Jan 4, 2024 · 2 min read · jenkins  ·
    Share on: twitter facebook linkedin copy

    In the

    previous post (multibranch basics) we have described the basics of creating and using a multibranch pipeline (well, building was manual for each branch, which is not too practical).
    In this post, we will learn how to trigger builds for branches using github webhooks.

    Plugins invalved

    • The trigering and …

    Read More
  • Multibranch Jenkins Pipelines Basics

    calendar Jan 3, 2024 · 2 min read · jenkins  ·
    Share on: twitter facebook linkedin copy

    Multibranch Pipelines

    These pipelines automatically "build" the code for each branch that has a Jenkinsfile in it.
    For example:

    • In a feature branch, you may want to prepare (build image? run container?) and run unit tests alone
    • in a develop branch, you may want to prepare more, and run some integration tests …

    Read More
  • Github Plugin Webhooks - part 2

    calendar Jan 1, 2024 · 2 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    In the

    previuos post we have create smee.io infrastructre that can be used to deliver push notification from Github to Jenkins.
    Now we can go to Github and Jenkins to configure those webhooks.

    Github Plugin

    • There are several plugins that can receive webhooks in Jenkins.
      • Generic Webhook Trigger
      • Gitlab Plugin …

    Read More
  • Github Plugin Webhooks - part 1

    calendar Jan 1, 2024 · 2 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    We start our journey towards a full example where we use github webhooks to trigger a build in a single branch pipeline.

    The big picture

    This is what we want to achieve (see notes below):

    <img
      loading="lazy" …</picture></figure></p>
    

    Read More
  • Jenkins Top

    calendar Dec 31, 2023 · 1 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    Introduction

    • Jenkins Terms

    • Jenkins GUI

    • Jenkins Freestyle Job

    Jenkins installation

    • jenkins all in docker 1

    • jenkins all in docker 2

    Pipelines

    • Pipelines Primer 1

    • Pipelines Primer 2

    • Scripted Pipelines

    • Declarative Pipelines

    • Docker Agent

    • Environment …


    Read More
  • Jenkins All in Docker 2

    calendar Dec 31, 2023 · 2 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    In the

    previous post, we have created a docker:dind container, a smart container that has docker installed inside, can store docker images, and run internal containers.
    In this post we'll use it as a jenkins agent from a Jenkins controller (also a container), so that Jenkins could run docker agent stages and …


    Read More
  • Jenkins All in Docker 1

    calendar Dec 31, 2023 · 3 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    This post is based on these instructions.

    How to run everything in docker containers

    We are using a unique configuration, where the Jenkins controller+agent are running in a docker container. The basic Jenkins image we can use is jenkins/jenkins image. The problem with this image is that the Jenkins agent included …


    Read More
  • Docker Agent

    calendar Dec 29, 2023 · 1 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    What is a docker agent?
    How can we create one and use it? We'll explore this on the next post(2)

    What is a docker agent

    Let's say that I want to run some nodejs javascript code.
    I don't want to really install nodejs on any of my agents.
    Can I use docker?
    Yes!!! I can specify a docker agent in my pipeline.
    Jenkins will …


    Read More
  • Environment Variables

    calendar Dec 29, 2023 · 1 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    Here's an example of a file with environment variables:

     1pipeline {
     2    agent any
     3
     4    environment {
     5        globalvar = 'global'
     6    }
     7
     8    stages {
     9        stage('stage1') {
    10            environment {
    11                localvar = 'local'
    12             }
    13            steps { …

    Read More
  • Declarative Pipelines

    calendar Dec 28, 2023 · 2 min read · jenkins ci/cd  ·
    Share on: twitter facebook linkedin copy

    Declarative pipelines were created to allow users create pipelines without learning Groovy programming.

    Declarative pipeline example

    • Create a new pipeline, as we've done in

      pipelines-primer-1 post
      ...but...

    • Choose GitHub + Maven example, which is the same as the one we have covered in

      scripted-pipelines, …


    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»


Google ads

Tags

LINUX 24 AWS 18 GIT 16 JENKINS 16 BASH 14 CI/CD 14 K8S 12 PYTHON 11 TERRAFORM 10 KUBERNETES 9 CONTAINERS 6 PROMETHEUS 3 NETWORKING 2 SECURITY 2
All Tags
AWS18 AWS NETWORKING1 BASH14 CCSA1 CHECKPOINT1 CI/CD14 CONTAINERS6 DATA1 DEVOPS1 DOCKER1 EC21 EFS1 GIT16 IAM1 JENKINS16 K8S12 KUBERNETES9 LINUX24 NETWORKING2 PROMETHEUS3 PYTHON11 SECURITY2 STORAGE1 TCP/IP2 TERRAFORM10
[A~Z][0~9]
Created by Yuval Shaul

Copyright 2023-  CREATED BY YUVAL SHAUL. All Rights Reserved

to-top