Artificatory から jar を取得しようとして失敗しました。ここに私のパイプラインスクリプトがあります:
pipeline {
agent none
stages {
stage('Stop all services') {
agent {label 'master'}
steps {
script{
def server = Artifactory.server 'Java_Artifactory'
def downloadSpec = readFile 'file'
def buildInfo1 = server.download spec: downloadSpec
}}}}}
これは私のファイルです:
{
"files": [
{
"pattern": "java-team-archiva-cache/com/rsa/jsafe/cryptoj/5.0/cryptoj-5.0.jar",
"target": "myTest/cryptoj.jar",
"props": "p1=v1;p2=v2"
}
]
}
これは私のコンソール出力です:
[Pipeline] stage
[Pipeline] { (Stop all services)
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/test_Pipeline
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] getArtifactoryServer
[Pipeline] readFile
[Pipeline] artifactoryDownload
Downloading artifacts using pattern: java-team-archiva-cache/com/rsa/jsafe/cryptoj/5.0/cryptoj-5.0.jar
Beginning to resolve Build Info published dependencies.
Finished resolving Build Info published dependencies.
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
Finished: SUCCESS
ご覧のとおり、出力にエラーはありませんが、それでも jar がどこにも見つかりません。/tmp/ の下にも保存しようとしましたが、結果は同じでした