문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
ci:jenkins:agent [2022/01/05 09:08] kwon37xi [AWS Fargate] |
ci:jenkins:agent [2022/05/30 23:19] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Jenkins Agent ( slave ) ====== | ====== Jenkins Agent ( slave ) ====== | ||
| * see [[ci: | * see [[ci: | ||
| + | * [[https:// | ||
| ===== 제한 사항 ===== | ===== 제한 사항 ===== | ||
| 줄 15: | 줄 16: | ||
| * [[https:// | * [[https:// | ||
| - | ===== AWS Fargate | + | ===== docker images |
| * [[aws: | * [[aws: | ||
| - | | + | |
| - | * [[https://plugins.jenkins.io/amazon-ecs/|Amazon Elastic Container Service (ECS) / Fargate | + | * [[https://hub.docker.com/r/ |
| - | * [[https://www.jenkins.io/doc/pipeline/steps/ | + | * [[https:// |
| - | * [[https://www.youtube.com/watch? | + | * username : '' |
| - | * [[https://aws.amazon.com/ko/blogs/devops/ | + | * [[https://hub.docker.com/r/jenkins/inbound-agent/|Docker jenkins/inbound-agent]] : java 버전별로 찾을 수 있다. docker & fargate 용. |
| - | * [[https://github.com/aws-samples/serverless-jenkins-on-aws-fargate/tree/ | + | * [[https://github.com/jenkinsci/ |
| + | * [[https://hub.docker.com/r/jenkins/ssh-agent|jenkins/ssh-agent - Docker Image | Docker Hub]] | ||
| + | * [[https://hub.docker.com/r/jenkins/agent|jenkins/agent - Docker Image | Docker Hub]] | ||
| ===== kubernetes / k8s ===== | ===== kubernetes / k8s ===== | ||
| * [[: | * [[: | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ===== Windows ===== | ||
| + | * on [[: | ||
| + | * [[https:// | ||
| + | |||
| + | ===== stash / unstash ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * 특정 agent 에서 '' | ||
| + | * [[https:// | ||
| + | |||
| + | <code groovy> | ||
| + | pipeline { | ||
| + | agent none | ||
| + | |||
| + | stages { | ||
| + | stage(' | ||
| + | agent { label ' | ||
| + | steps { | ||
| + | sh ''' | ||
| + | touch file.txt | ||
| + | mkdir -p target | ||
| + | touch target/ | ||
| + | touch target/ | ||
| + | tree | ||
| + | ''' | ||
| + | stash(name: ' | ||
| + | } | ||
| + | } | ||
| + | stage(' | ||
| + | agent { label ' | ||
| + | steps { | ||
| + | unstash ' | ||
| + | sh ' | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| ===== 참조 ===== | ===== 참조 ===== | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||