GithubHelp home page GithubHelp logo

Comments (5)

byaminov avatar byaminov commented on July 22, 2024

@godojoe the global xldeploy { .. } extension contains only five configuration properties now: the manifest and the XL Deploy connection details, you can see them in XlDeployPluginExtension.groovy

The deletePreviouslyDeployedDar is a configuration of the deploy task, so your example should be configured like following:

xldeploy {
  xldUrl = xldeployUrl
  xldUsername = xldeployUsername
  xldPassword = xldeployPassword
  manifest = file('setupscripts\\xl_deploy\\deployit-manifest.xml')
}

tasks.deploy.configure {
  deletePreviouslyDeployedDar = true
}

from gradle-xld-plugin.

godojoe avatar godojoe commented on July 22, 2024

thanks for that. This solves the 'No such property' error, however, the property does not seem to take effect (xldeploy server: 5.1.3,
com.xebialabs.gradle:xl-deploy-gradle-plugin 0.2.3).
I get this when attempting to redeploy the same .dar:

error   18-Apr-2016 11:02:20    11:02:20.378 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':deploy'.
error   18-Apr-2016 11:02:20    11:02:20.378 [ERROR] [org.gradle.BuildExceptionReporter] > com.xebialabs.deployit.service.importer.ImporterException:Already imported version 0.1.dev0009-93-g3f42 of application ...

from gradle-xld-plugin.

byaminov avatar byaminov commented on July 22, 2024

@godojoe the deletePreviouslyDeployedDar flag makes sure that the previous version of an application would be deleted after deploying a new version. So if you would deploy my-app-1.0 and deploy my-app-1.1, then my-app-1.0 would be deleted after successful deployment. Here is an example output:

:dar
:deploy
Importing dar file /Users/bulat/fun/gradle-xld-plugin/src/test/resources/HelloDeployment/build/libs/HelloDeployment-1.0.dar
Application already exists => preparing update
Executing generated deployment task: c23bfaad-7f4a-406d-a684-d9d29f112a0a (run Gradle with '-i' to see detailed output)
Removing the previous version Applications/HelloDeployment/1.0-20160415-222551

It is however not possible to redeploy the same version: my-app-1.0.

If you are in development mode I suggest that you use a -SNAPSHOT suffix for your version, then on every build your .dar file will get a new version with a timestamp. See an example configuration of build.gradle and deployit-manifest.xml with noSnapshot function. Once the development is finished then you can release the final 1.0, deploy it once and switch to the next iteration, e.g. 1.1.

from gradle-xld-plugin.

godojoe avatar godojoe commented on July 22, 2024

Got it. Problem solved. Thanks for the quick feedback.

On Mon, Apr 18, 2016 at 11:31 AM, Bulat Yaminov [email protected]
wrote:

@godojoe https://github.com/godojoe the deletePreviouslyDeployedDar
flag makes sure that the previous version of an application would be
deleted after deploying a new version. So if you would deploy my-app-1.0
and deploy my-app-1.1, then my-app-1.0 would be deleted after successful
deployment. Here is an example output:

:dar
:deploy
Importing dar file /Users/bulat/fun/gradle-xld-plugin/src/test/resources/HelloDeployment/build/libs/HelloDeployment-1.0.dar
Application already exists => preparing update
Executing generated deployment task: c23bfaad-7f4a-406d-a684-d9d29f112a0a (run Gradle with '-i' to see detailed output)
Removing the previous version Applications/HelloDeployment/1.0-20160415-222551

It is however not possible to redeploy the same version: my-app-1.0.

If you are in development mode I suggest that you use a -SNAPSHOT suffix
for your version, then on every build your .dar file will get a new
version with a timestamp. See an example configuration of build.gradle
https://github.com/xebialabs-community/gradle-xld-plugin/blob/master/src/test/resources/HelloDeployment/build.gradle#L18
and deployit-manifest.xml with noSnapshot function
https://github.com/xebialabs-community/gradle-xld-plugin/blob/master/src/test/resources/HelloDeployment/src/main/dar/deployit-manifest.xml#L9.
Once the development is finished then you can release the final 1.0,
deploy it once and switch to the next iteration, e.g. 1.1.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#8 (comment)

from gradle-xld-plugin.

byaminov avatar byaminov commented on July 22, 2024

I'm glad it's solved!

from gradle-xld-plugin.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.