Drupal 8: Bootstrap Sticky is not sticky in Drupal 8 - Solved
Bootstrap has a simple solution to have sticky blocks in your html. I’ve given a…
October 07, 2022
In this post we will see following:
Jenkin pipelines are very powerful and flexible, they provide lot of options for developers. One such option is triggers
.
Complete Jekninsfile:
pipeline {
agent {
node {
label "MyJenkinNode"
}
}
triggers {
//every 24 hours at 12 AM
cron('0 0 * * *')
}
stages {
stage('Install requirements') {
steps {
...
}
}
}
}
}
Above file triggers job every 24 hours, 12 AM every day.
The nature of my job is to run only on cron schedule specified. Problem will be, even if I’m changing something in any file, lets say in README or any python file, the job will be triggered.
I do not want the job to run on any code commit.
The idea is to use changeset pattern
with a regex pattern.
Example:
when {
not { changeset pattern: ".*", comparator: "REGEXP" }
}
Complete file:
pipeline {
agent {
node {
label "MyJenkinNode"
}
}
triggers {
//every 24 hours at 12 AM
cron('0 0 * * *')
}
stages {
stage('Install requirements') {
when {
not { changeset pattern: ".*", comparator: "REGEXP" }
}
steps {
...
}
}
}
}
}
If you want job not to run on some specific file changes, you can provide that regex pattern.
Bootstrap has a simple solution to have sticky blocks in your html. I’ve given a…
Listing down the commonly used Elastic Search queries. You can get search…
Problem Statement I developed a simple ReactJS application where I have used…
Introduction In this post, I will show several ways to use conditionals while…
Introduction In this post, we will see: use Grafana Community Edition (Free…
Agenda I will cover following in this post: Prepare Docker image for Next.js app…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…
Introduction You have a running kubernetes setup, and have a webservice (exposed…