This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: example | |
| namespace: kube-system | |
| labels: | |
| app: example | |
| spec: | |
| template: | |
| metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node { | |
| boolean isSuccess = true | |
| try { | |
| stage( 'Build' ) { | |
| build job: "Build", parameters: [[$class: 'StringParameterValue', name: 'Branch', value: "${Branch}"]] | |
| } | |
| stage( 'Test' ) { | |
| build job: "Test", parameters: [] | |
| } | |
| stage( 'Deploy' ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##(1) | |
| node { | |
| ##(2) | |
| stage('Build') { | |
| ... | |
| } | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##(1) | |
| pipeline { | |
| ##(2) | |
| agent any | |
| ##(3) | |
| stages { | |
| ##(4) | |
| stage('Build') { | |
| ##(5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [[ "$(uname -a)" =~ ^Linux.*-microsoft-standard.*GNU\/Linux ]]; then | |
| if [ ! -f "/var/run/docker.pid" ]; then | |
| sudo /usr/sbin/service docker start | |
| fi | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "DOCKER and DOCKER-COMPOSE" | |
| sudo apt-get remove docker docker-engine docker.io containerd runc | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| listView('Docker_builds') { | |
| description('Jobs for build docker images') | |
| filterBuildQueue() | |
| filterExecutors() | |
| jobs { | |
| name('Build_docker_images') | |
| } | |
| columns { | |
| status() | |
| weather() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipelineJob("Build_Vagrant_Image") { | |
| logRotator(30, -1, 1, -1) | |
| parameters { | |
| stringParam('VAGRANT_BOX_VERSION', '1.1', 'Version of vagrantbox') | |
| choiceParam('IMAGE', ['-----Choose OS for Build----', '-----Ubuntu-----', 'ubuntu1604', 'ubuntu1804', 'ubuntu2004', '-----CentOS-----', 'centos6', 'centos7', 'centos8', '-----Debian-----', 'debian8', 'debian9', 'debian10', '-----FreeBSD-----', 'freebsd11.4', 'freebsd12.2', 'freebsd13.0', ], 'Build OS') | |
| } | |
| definition { | |
| cpsScm { | |
| scm { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2018/8/5 00:03:10 [LEVEL4] 1927402673 273564 KEY001 asd zxc lsjdnh:666 snhdgs:000 | |
| 2018/9/15 10:04:11 [LEVEL4] 72946629773 285275 KEY002 asd zxc lsjdnh:342 snhdgs:111 | |
| 2018/10/5 21:31:05 [LEVEL4] 8203749274 196283 KEY0003 asd zxc lsjdnh:124 snhdgs:222 | |
| 2018/11/21 08:13:40 [LEVEL4] 9253772253 197026 KEY0004 asd zxc lsjdnh:634 snhdgs:333 | |
| 2019/1/2 22:03:22 [LEVEL4] 8241196002 102836 KEY0005 asd zxc lsjdnh:745 snhdgs:444 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: ServiceAccount | |
| apiVersion: v1 | |
| metadata: | |
| name: restart-deploy | |
| namespace: testns | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: Role | |
| metadata: |