Comments (5)
@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.
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.
@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.
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-222551It 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.
I'm glad it's solved!
from gradle-xld-plugin.
Related Issues (17)
- version of remote-booter HOT 4
- DarTask doAfterEvaluate() does work during configuration and breaks UP-TO-DATE checking HOT 2
- Running Gradle 4.0 causes You cannot add child specs at execution time exception HOT 2
- 5.0 plugin An established connection was aborted by the software in your host machine HOT 1
- Remote boot library 2017.5.0 is not backwards compatable to xl-deploy 6.x HOT 2
- The plugin takes into account the commented part of deployit-manifest.xml and try to execute them HOT 1
- ERROR: Error when importing dar file : Failed to create directory within 10000 attempts (tried 1562589097891-0 to 1562589097891-9999) HOT 1
- Migrate to gradle wrapper 5.x due to java 11 LTS
- Gradle 6.5 warnings in preparation for Gradle 7.0
- Failed to apply plugin in Gradle 7.0 HOT 3
- Deploy Only Task
- Failed to import dar package HOT 13
- generating deployit-manifest.xml at buildtime HOT 11
- Artifact function doesn't support folder HOT 5
- stackoverflow when using 0.2.2 version HOT 4
- windows MSI deployable support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-xld-plugin.