Record
목차
개념
설지
프로젝트
참조
ERROR: Failed to copy artifacts from package with filter: **/*.war
[DeployPublisher][INFO] Build failed, project not deployed
Finished: FAILURE
https://stackoverflow.com/questions/51869637/got-failed-to-copy-artifacts-from-another-project-with-filter-war-while
참조
#!groovy
pipeline {
agent any
stages {
stage('Symbolic create') {
steps {
copyArtifacts(projectName: '__TEST_logispot-wms-hk', filter: 'target/*.war', selector: [$class: 'WorkspaceSelector']);
}
}
stage('SSH transfer') {
steps {
sshPublisher(
continueOnError: false, failOnError: true,
publishers: [
sshPublisherDesc(
configName: "test-logispot-wms",
verbose: true,
transfers: [
sshTransfer(
sourceFiles: "target/*.war",
removePrefix: "",
remoteDirectory: "deploy/",
execCommand: "docker cp deploy tomcat1:/usr/local/tomcat/deploy"
)
]
)
]
)
}
}
}
}