Questions tagged [gradle-ssh-plugin]

7 questions
8
votes
3 answers

reject HostKey: when deploying JAR with gradle ssh plugin

I am trying to upload jar with Gradle and used Gradle SSH plugin: https://gradle-ssh-plugin.github.io/ Unfortunately, goal executed with error * What went wrong: Execution failed for task ':deploy'. > reject HostKey: SERVERIPADDRESS How to fix? I…
Dims
  • 47,675
  • 117
  • 331
  • 600
3
votes
1 answer

executing shell script and using its output as input to next gradle task

I am using gradle for build and release, so my gradle script executes a shell script. The shell script outputs an ip address which has to be provided as an input to my next gradle ssh task. I am able to get the output and print on the console but…
sugar
  • 251
  • 4
  • 13
2
votes
3 answers

Gradle SSH plugin copying parent folder and not just files

I'm using this Gradle SSH plugin. It has a method put that will move files from my local machine to the machine the session is connected to. My app is fully built and exists in build/app and I'm trying to move it to /opt/nginx/latest/html/ such that…
Corey Ogburn
  • 24,072
  • 31
  • 113
  • 188
0
votes
0 answers

gradle-ssh-plugin ssh.settings syntax in kotlin

I am trying to configure the gradle-ssh-plugin within my build.gradle.kts in kotlin. I have found this issue, which helped me a lot. Everything is working fine as long as I put my known host entries in the standard location of the plugin knownHosts:…
aminator
  • 396
  • 7
  • 18
0
votes
0 answers

Switch to another user using SSH plug-in for Gradle

I am trying to switch to another user during a session in SSH plug-in for Gradle. The execution hangs and do not continue. I want to do: su - user I have tried to do the following in build.Gradle file in a Gradle task session(remotes.web){ def…
Androider
  • 105
  • 11
0
votes
1 answer

Gradle ssh plugin: works for T-mobile, not working for Google-Fi

Gradle ssh plugin: works for T-mobile, not working for Google-Fi. With google FI, WinSCP can connect to linux server without problem, and PuTTY works too. But gradle ssh plugin could not connect to server using the same key. T-mobile works fine for…
eastwater
  • 4,624
  • 9
  • 49
  • 118
0
votes
0 answers

Cannot start service through Gradle SSH

I have a service on a Ubuntu 14.04 LTS machine that starts a Play application. When I run service serviceName start directly from the machine (sudo or not), it works. But I'm deploying this application through Gradle. My build.gradle uses the SSH…