Created
March 10, 2022 13:41
-
-
Save aev-mambro2/e080ea2d52126c3b701a1cd43400dd58 to your computer and use it in GitHub Desktop.
How to deploy from multiple projects to multiple target servers using Gradle CDCI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["server-1", "server-2", "server-3"].each { server -> | |
task "deploy-to-$server" (type: Copy) { | |
description: "Copies the project executables to $server" | |
enabled: true | |
group: "distribution" | |
afterEvaluate { Project project -> | |
from: "$distDir/$distZip" | |
into: "\\\\$server\\share\\${project.name}\\" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have tried other variations as well. None of these worked: