2022-05-22 16:52:36 +03:00
|
|
|
job("Deploy") {
|
2022-05-25 18:40:23 +03:00
|
|
|
startOn {
|
|
|
|
gitPush { enabled = false }
|
2022-05-22 16:52:36 +03:00
|
|
|
}
|
2022-05-25 18:40:23 +03:00
|
|
|
|
|
|
|
gradlew("openjdk:11", "installDist")
|
|
|
|
|
|
|
|
container(displayName = "Deploy via scp", image = "openjdk:11") {
|
|
|
|
env["HOST"] = Params("spc-host")
|
|
|
|
env["USER"] = Secrets("spc-webmaster-user")
|
|
|
|
env["ID"] = Secrets("spc-webmaster-id")
|
2022-05-22 16:52:36 +03:00
|
|
|
|
|
|
|
shellScript {
|
|
|
|
interpreter = "/bin/bash"
|
|
|
|
content = """
|
2022-05-25 18:28:30 +03:00
|
|
|
ls -la
|
|
|
|
""".trimIndent()
|
2022-05-22 16:52:36 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|