Skip to content

Instantly share code, notes, and snippets.

View arilivigni's full-sized avatar

Ari LiVigni arilivigni

View GitHub Profile
@arilivigni
arilivigni / ci-workflow-defaults.yml
Last active May 6, 2024 19:16
Jenkins Job Builder Example
- defaults:
name: ci-workflow-provision
description: |
Managed by Jenkins Job Builder. Do not edit via web.
concurrent: true
scm:
- git:
url: 'https://code.engineering.redhat.com/gerrit/ci-ops-central'
branches:
- origin/master
@arilivigni
arilivigni / Dockerfile
Last active January 17, 2017 12:34
Jenkins plugins install
FROM openshift/jenkins-1-centos7
MAINTAINER Ari LiVigni <[email protected]>
# Install 'git' binary needed for the Github plugin
USER root
RUN yum install -y git epel-release sudo && yum clean all
RUN yum install -y python-pip && yum clean all
RUN pip install jenkins-job-builder==1.3.0
@arilivigni
arilivigni / poll-url.yaml
Created November 11, 2015 20:11
JJB to poll url for content changes
- defaults:
name: poll-url-defaults
logrotate:
numToKeep: 30
artifactNumToKeep: 30
wrappers:
- ansicolor
- workspace-cleanup
- timestamps
env.REMOTE = env.BRANCH_NAME ?: 'https://github.com/CentOS/cico-pipeline-library.git'
env.ghprbActualCommit = env.ghprbActualCommit ?: 'master'
library identifier: "cico-pipeline-lib@${env.ghprbActualCommit}",
retriever: modernSCM([$class: 'GitSCMSource',
remote: "${env.REMOTE}"])
import org.centos.*
node {
deleteDir()
@arilivigni
arilivigni / build-jenkins.sh
Created January 15, 2019 19:18
Jenkinsfile-runner example
#!/bin/bash
set -x
set -e
# Clone the repo
git clone https://github.com/jenkinsci/jenkinsfile-runner.git
pushd jenkinsfile-runner
@arilivigni
arilivigni / app-sre-jcasc.yaml
Last active December 16, 2020 20:40
JCasC for App-SRE Jenkins
jenkins:
systemMessage: "<h2>Welcome to the App-SRE Jenkins on OSD</h2>"
agentProtocols:
- "JNLP4-connect"
- "Ping"
authorizationStrategy:
globalMatrix:
permissions:
- "Overall/Administer:arilivigni"
securityRealm:
@arilivigni
arilivigni / jenkins-operator-app-sre-jcasc.yaml
Last active January 6, 2021 23:22
Jenkins Operator app-sre-jcasc configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: app-sre-jcasc
namespace: app-sre-cicd
data:
1-app-sre-jcasc.yaml: |
jenkins:
systemMessage: "<h2>Welcome to the App-SRE Jenkins on OSD</h2>"
numExecutors: 0
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: extract-check-build-verify-push
spec:
workspaces:
- name: source
description: The image building will be done onto the volume backing this workspace
params:
@arilivigni
arilivigni / gh-cli-projects-actions.yml
Created April 25, 2023 12:47
GitHub Action that uses the gh project cli extension to get info about a project from the command line
name: Add a new GitHub Project card linked to a GitHub issue to the specified project column
on:
issues:
types: [ opened, labeled, unlabeled ]
env:
GITHUB_ORG: ${{ github.repository_owner }}
GITHUB_PROJECT_NAME: "Continuous-Devops-GitHub-App-MasterBlaster"
GITHUB_EVENT: ${{ toJson(github.event) }}
GITHUB_ISSUE: ${{ toJson(github.event.issue) }}
GITHUB_ISSUE_URL: ${{ github.event.issue.html_url }}