Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: consider adding cksum #193

Open
zverbatim opened this issue Feb 16, 2016 · 3 comments
Open

suggestion: consider adding cksum #193

zverbatim opened this issue Feb 16, 2016 · 3 comments
Labels

Comments

@zverbatim
Copy link

Hi,
Just a suggestion: consider adding a cksum feature that will check the jar/war on the localhost and then compare with the remote jar/war cksum. If cksum test fails repeat, deploy 2 more times.

If interested, let me know - i could try to make it and do pull request for it.
Cheers

@int128
Copy link
Owner

int128 commented Feb 21, 2016

Sounds good. Would you open the pull request?

@int128 int128 added the feature label Feb 21, 2016
@matthiasbalke
Copy link
Contributor

I use the gradle-ssh-plugin to transfer webapps for deployment. While testing we are transfering a lot of large files so it would be nice if the plugin could detect that the file didn't change and only transfer changed files.

Would this feature fit in your PR scope?

@EronWright
Copy link

EronWright commented Mar 1, 2017

I use rsync as a workaround to vastly improve upload performance. This build script uses the application plugin to produce a distribution which is then uploaded to the server. The ssh plugin is finally used to launch the application. I use ssh-add to provide a private key.

remotes {
    myserver {
        host = '1.2.3.4'
        user = 'centos'
        agent = true
    }
}

task upload(type: Exec, dependsOn: installDist) {
  commandLine 'rsync', '-az', project.installDist.destinationDir, "${remotes.myserver.user}@${remotes.myserver.host}:~"
}

task launch(dependsOn: upload) {
    doLast {
        ssh.run {
            session(remotes.myserver) {
              // ...
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants