I'm learning Jenkins these days and I faced a situation. I need to execute conditional undeploy on glassfish. I want to undeploy an application only if it exsits in the server. Is there a way to do this in a single command line?
Conditional undeploy on glassfish
155 Views Asked by ziMtyth At
1
There are 1 best solutions below
Related Questions in DEPLOYMENT
- Can I deploy multiple instances of my application on the same windows phone?
- Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?
- uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop
- How to Continuously Develop and Deploy an Access 2010 Database Application
- Efficient way of organizaing mail sending from Rails app
- Deployment over GPRS to embedded devices
- Weblogic 12c web application not start properly after server reboot
- Deployment in Weblogic 10.3, how to change properties
- Deployed Version of MVC Site Not Working
- Laravel 5 on shared hosting getting internal server error
- Integration between Java Applets and .Net dll
- Capistrano Rails deploy with new migration files
- EF Code First - Multiple Application Versions Sharing A Database
- Docker: How to create a stack, multiple images or one base image?
- Slow wpf startup due to publish policy... maybe
Related Questions in GLASSFISH
- Simple JavaEE HTML GET/POST application
- Access roles from multiple applications
- GlassFish sometimes doesn't load my web apps
- How to configure custom access-log format for Glassfish-4.1 (worked in v3.1.2.2, ignored in v4.1)
- File upload via h:inputfile (prettyfaces) does not work
- java 8 with Glassfish 4.1 Artifact HelloWorld:war exploded: Server is not connected. Deploy is not available
- Why won't my JSF app deploy to GlassFish?
- Best way redirect REST service request on glassfish + JAX-RS to https URL?
- JCA Glassfish to JBoss/Wildfly
- Ajax h:link doesn't call listener function
- JPA Bidirectionnal Uknown column
- Glassfish Closing JDBC Connection
- How to get other properties from an LDAP principal (user) after login using Glassfish's LDAPRealm?
- Deploying two applications in GlassFish's root context
- Starting Java EE Application on Glassfish
Related Questions in GLASSFISH-3
- Understanding Grizzly 1.9.36 internals
- Warning: This page calls for XML namespace http://xmlns.jcp.org/jsf/XXX declared with prefix XXX but no taglibrary exists for that namespace
- Make deployment fail with customized error in Glassfish 3.1
- Change colour of Glassfish 3.1 Community Edition Domain Application Server
- Primefaces wizard in internet explorer is rendering the next button multiple times
- Glassfish 3.0: Exception while deploying ejb module...Invalid ejb j ar: it contains zero ejb
- Glassfish 3 Connection Pool throws java.sql.SQLSyntaxErrorException: ORA-00933
- IllegalArgumentException: Invalid ejb jar: it contains zero ejb
- java.lang.AbstractMethodError while deplyong war on GlassFish Open Source Edition 3.1
- asadmin list-instances cluster glassfish
- Spring-Data-JPA in CDI environment?
- Can one change the domain xml configuration file of glassfish 3.1.2.2 while the server is running?
- Lazy loading in TomEE is not working as expected
- JSF PhaseListener called not at all or twice
- Apache Fop: Galssfish 3.1.2 fails to render pictures
Related Questions in ASADMIN
- Is there any CLI way to show information about Glassfish JDBC connection pool?
- Success message "Domain domain1 started." not logged but console is accessible when starting GlassFish
- The server exited prematurely with exit code 1 GlassFish 4
- glassfish 4.0 asadmin create-domain error
- How to disable and enable admin console (admin-listener, port 4848) from the command line
- "The system cannot find the path specified." error message when trying to start GlassFish with asadmin
- Check read writes in Aerospike using asadm
- Conditional undeploy on glassfish
- Payara 5 - Statement Wrapping should be set to true before performing this operation
- JavaEE6 Web profile installation error 'The configuration has failed. Please see the output below'
- How to start glassfish domain from different path using command line
- Glassfish4 JMX Configuration using asadmin
- Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/universal/i18n/LocalStringsImpl
- Creation of GlassFish domain for CONNECT deployment error
- Using the context-root from glassfish-web.xml in GlassFish 3
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
To do so, I used the followin Bash code:
PS: the content of password.txt is a single line:
AS_ADMIN_PASSWORD=adminI hope it will help someone someday =)