- ์ฐํฉ๋ด์ค - ์ฐํฉ๋ด์ค ์๋ณด
- MBC - ํ๊ฒจ๋ - YTN
- ๋ฏธ๋์ด์ค๋ - ๊ธฐ์ํํ๋ณด - ์ค๋ง์ด๋ด์ค
- slow letter , - 14F
- careerly app [codenary](https://www.codenary.
function Get-Boxstarter { | |
Param( | |
[string] $Version = "2.12.0", | |
[switch] $Force | |
) | |
if(!(Test-Admin)) { | |
$bootstrapperFile = ${function:Get-Boxstarter}.File | |
if($bootstrapperFile) { | |
Write-Host "User is not running with administrative rights. Attempting to elevate..." | |
$command = "-ExecutionPolicy bypass -noexit -command . '$bootstrapperFile';Get-Boxstarter $($args)" |
def str = ''' | |
pipeline { | |
agent any | |
stages { | |
stage('Hello') { | |
steps { | |
echo 'Hello World' | |
sh 'pwd' | |
} | |
} |
// reference : https://stackoverflow.com/questions/56294317/how-to-programmatically-get-distribution-id-to-invalidate-cloudfront-cache | |
// prerequisite : aws cli, jq , aws credentials setting | |
pipeline { | |
parameters { | |
stringParam(description: 'your domain name', name: 'domain') | |
} | |
agent any | |
stages{ | |
stage('init'){ | |
steps{ |
/* | |
jenkins pipeline ์ post directive ์์๋ ์ด๋ค ์ด์ ๋ก์ธ์ง | |
์ ์ญ ๋๋ stage ์์ ์ฌ์ฉํ๋ ๋ณ์๋ ํ๊ฒฝ๋ณ์์ ๋ณ๊ฒฝ๋ ๊ฐ์ ์ ๊ทผํ์ง ๋ชปํฉ๋๋ค. | |
๋ค์ํ๊ฒ ์๋ํด๋ณธ ๊ฒฐ๊ณผ ํธ๋ฆญ์ธ๋ฏ ํ์ง๋ง | |
currentBuild.displayName ๋๋ currentBuild.description ์ ์ด์ฉํ์ฌ ์ฒ๋ฆฌ ๊ฒฐ๊ณผ๋ฅผ ์ ์ฅํ์ฌ | |
post ๋จ๊ณ์์ slack ๋ฑ์ ํด์ ๋์ ์ธ ์ ๋ณด๋ฅผ ์ ๋ฌํ ์ ์์ต๋๋ค. | |
---- | |
description: If you want to use variable on 'post' directives by storing the result message | |
according to the processing of a specific stage, | |
you can use currentBuild.displayName or currentBuild.description. |
############################################################################### | |
# Helpful Docker commands and code snippets | |
############################################################################### | |
### CONTAINERS ### | |
docker stop $(docker ps -a -q) #stop ALL containers | |
docker rm -f $(docker ps -a -q) # remove ALL containers | |
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
# exec into container |
def MIN = 500 // minimum count | |
Jenkins.instance.getAllItems(AbstractProject.class).sort{ it.builds.size() }.reverse().findAll{ it.builds.size() > MIN }.each{ | |
println it.absoluteUrl + "," + it.builds.size() | |
} | |
return |
pipeline { | |
agent any | |
environment { | |
VAULT_TOKEN = 'YOUR_VAULT_TOKEN' | |
VAULT_API_ADDR = 'YOUR_VAULT_URL/v1' | |
} | |
stages { | |
stage("read vault"){ | |
steps { | |
script{ |
/* | |
* site healthcheck to slack notification pipeline | |
* | |
*/ | |
pipeline { | |
agent any | |
triggers { | |
pollSCM('H/10 * * * *') // every 10 min | |
} | |
environment { |
#!/bin/bash | |
set -x | |
set -e | |
# Clone the repo | |
git clone https://github.com/jenkinsci/jenkinsfile-runner.git | |
pushd jenkinsfile-runner |