stage('Push') {
steps {
script{
def PKGNEXUSURL = env.NEXUS_URL + '/' + profile + '/' + env._product + '/' + env.JOB_BASE_NAME + '/' + env._buildtime
def FINDRES = sh returnStdout: true, script: "find ${env.WORKSPACE} -type f -iname '${env.JOB_BASE_NAME}*.zip' -o -type f -iname '${env.JOB_BASE_NAME}*.war'"
println FINDRES
sh "echo $PKGNEXUSURL"
sh '''
curl -v -u ${_nexususerpassword} --upload-file $FINDRES $PKGNEXUSURL
'''
}
}
}
识别不到 url