Hi,
I have a requirement that I have to create 2 zips and upload one to artifactory and deploy other to a web server. How do I configure two different uploadArchives, one uploading to artifactory and other to web server?
Task zip = project.tasks.add('zip', Zip.class)
zip.from
'scripts'
zip.include projectName + '/**'
Task zipAssetsToDeploy = project.tasks.add('zipAssetsToDeploy', Zip.class)
zipAssetsToDeploy.from
'.'
zipAssetsToDeploy.exclude '.gradle'
project.artifacts {
archives zip, zipAssetsToDeploy
}
project.uploadArchives {
repositories.mavenDeployer {
repository(url: 'SOME_URL') {
authentication(userName: 'LOGIN', password: 'PASSWORD')
}
}
}
How do I give ‘sshDeployer’ to upload other zip to server?