Skip to content

Instantly share code, notes, and snippets.

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { JobComponent } from './job.component';
import { FormlyModule } from '@ngx-formly/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
#!/usr/bin/groovy
timestamps {
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
containerTemplate(name: 'docker', image: 'docker:18.06', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.10.0', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'chrome', image: 'garunski/alpine-chrome:latest', command: 'cat', ttyEnabled: true),
#!/usr/bin/groovy
timestamps {
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
containerTemplate(name: 'docker', image: 'docker:18.06', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.10.0', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'chrome', image: 'garunski/alpine-chrome:latest', command: 'cat', ttyEnabled: true),
Master:
ImageTag: "2.141"
ServiceType: NodePort
NodePort: 32222
UseSecurity: false
InstallPlugins:
- kubernetes:1.12.4
- workflow-aggregator:2.5
@garunski
garunski / Jenkinsfile
Last active June 2, 2023 18:18
Jenkinsfile with testing and code coverage
#!/usr/bin/groovy
timestamps {
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
containerTemplate(name: 'chrome', image: 'garunski/alpine-chrome:latest', command: 'cat', ttyEnabled: true)
]
) {
#!/usr/bin/groovy
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
]
) {
node ('jenkins-pipeline') {
stage('Get latest version of code') {
@garunski
garunski / Jenkinsfile.local.groovy
Created December 25, 2017 23:01
Jenkinsfile.local
#!/usr/bin/groovy
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
containerTemplate(name: 'ng', image: 'alexsuch/angular-cli:1.6.1', command: 'cat', ttyEnabled: true)
]
) {
node ('jenkins-pipeline') {
@garunski
garunski / jenkins-helm-values.yaml
Last active September 5, 2018 20:47
Jenkins Helm Configuration
Master:
ImageTag: "2.95"
ServiceType: NodePort
ServicePort: 80
InstallPlugins:
- kubernetes:1.1.2
- workflow-aggregator:2.5
- credentials-binding:1.13
- git:3.6.4
settings = {
hideSubHeader: true,
actions: {
position: 'right',
edit: false
},
attr: {
class: 'table table-bordered table-hover table-responsive'
},
pager: {
@garunski
garunski / Microsoft.PowerShell_profile.ps1
Last active August 17, 2017 16:13
zsh git extension shortcuts for powershell
#powershell aliases for zsh git plugin
#https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git
function gitBranchName {
$currentBranch=''
git branch | foreach {
if ($_ -match "^\* (.*)") {
$currentBranch += $matches[1]
}
}