목차

Jenkins Agent ( slave )

제한 사항

agent 기본 사항

docker-pipeline

docker images

kubernetes / k8s

Windows

stash / unstash

pipeline {
  agent none
 
  stages {
    stage('Hello') {
      agent { label 'linux' }
      steps {
        sh '''
          touch file.txt
          mkdir -p target
          touch target/file2.jar
          touch target/file3.war
          tree
        '''
        stash(name: 'myStash', includes: '**/*.war')
      }
    }
    stage('check the file') {
      agent { label 'macos' }
      steps {
        unstash 'myStash'
        sh 'tree'
      }
    }
  }
}

참조