microsoft / vsts-tomcat Goto Github PK
View Code? Open in Web Editor NEWThis contains tomcat tasks for vsts build and rm
This contains tomcat tasks for vsts build and rm
It happens even though I have password taken from the variable that I have marked as secret.
Here's the YAML version of the step in my deployment pipeline:
steps:
- task: ms-vscs-rm.apachetomcat.tomcatdeployment-task.TomcatDeployment@1
displayName: 'Deploy application to a Tomcat server - ew.war'
inputs:
TomcatUrl: 'http://tomcat-server'
Username: '$(TOMCAT_ADMIN_USERNAME)'
Password: '$(TOMCAT_ADMIN_PASSWORD)'
Warfile: '$(System.DefaultWorkingDirectory)/_NEDB-NG/ew.war/ew.war'
Context: /ew
and here are the variables (set in build pipeline):
The deployment step still lists it, along with other curl
paramaters: (instead of <EDITED>
I can see my password).
2021-11-25T13:46:38.8162892Z ##[section]Starting: Deploy application to a Tomcat server - ew.war
2021-11-25T13:46:38.8171102Z ==============================================================================
2021-11-25T13:46:38.8171444Z Task : Deploy to Apache Tomcat
2021-11-25T13:46:38.8171685Z Description : Deploy application to a Tomcat server.
2021-11-25T13:46:38.8171925Z Version : 1.0.0
2021-11-25T13:46:38.8172140Z Author : Microsoft Corporation
2021-11-25T13:46:38.8172413Z…admin:<EDITED> -T /home/agent.admin/build-agent/_work/r2/a/_NEDB-NG/ew.war/ew.war http://tomcat-server/manager/text/deploy?path=/ew/&update=true
2021-11-25T13:46:38.9221092Z % Total % Received % Xferd Average Speed Time Time Time Current
2021-11-25T13:46:38.9221794Z Dload Upload Total Spent Left Speed
2021-11-25T13:46:38.9222092Z
2021-11-25T13:46:40.7077245Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
The Latest Tomcat Web App is based on 8.0.44 in Azure Marketplace.
I managed to get the Tomcat Manager access, and cURL APIs enabled.
Unfortunately the "Deploy to Apache Tomcat Task" seems to perform an unsupported call:
==============================================================================
2017-07-29T16:02:19.7357780Z Task : Deploy to Apache Tomcat
2017-07-29T16:02:19.7357780Z Description : Deploy application to a Tomcat server.
2017-07-29T16:02:19.7357780Z Version : 0.1.3
2017-07-29T16:02:19.7357780Z Author : Microsoft Corporation
2017-07-29T16:02:19.7357780Z Help : More Information
2017-07-29T16:02:19.7357780Z ==============================================================================
2017-07-29T16:02:20.5877548Z [command]C:\Program Files\Git\usr\bin*curl.exe --stderr - --fail -o d:\a_temp\tomcatResponse_1501344140562.txt -u YYYYY:XXXX -T d:\a\r1\a\damage-report-artifacts\damage-report\damage-report.war http://REMOVED.azurewebsites.net/manager/text/deploy?path=/damage-report&update=true*
2017-07-29T16:02:21.2362504Z % Total % Received % Xferd Average Speed Time Time Time Current2017-07-29T16:02:21.8310876Z curl: (22) The requested URL returned error: 404 Not Found
2017-07-29T16:02:21.8460877Z ##[error]Error: C:\Program Files\Git\usr\bin\curl.exe failed with return code: 22
When I reproduce it locally (from my windows desktop) I get the same error, checking it in Fiddler revealed that update=true option is not recognized.
Removing it doesn't help either. Interestingly enough using Tomcat Manager I was not able to deploy my WAR file.
I simply FTP it over.
Disappointing..
Trying to use this task and I get the following error. Any suggestions on what needs to be changed in order to run the task successfully? Thanks
Is the plugin currently accept wildcards?
I sit possible to deploy .war into Tomcat 10.x using Azure DevOps "Apache Tomcat Deloyment 1.x" task ? any known issues ?
Hello guys,
Let me explain what I am doing, I am using this task. The problem comes when the agent tries to deploy my .war in my Tomcat. My Tomcat is a docker container that I have already configured the manager, I have set the roles etc. It is running in my localhost:8080. So, the logs says this "Not found curl: null". I checked the capabilities of my agent and it has this capability also in the path.
I have already attached an image but I will add the path here
path:C:_tools\jdk-17.0.5.8-hotspot\bin;C:\Python39\Scripts;C:\Python39;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\dotnet;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\nodejs;C:\maven\apache-maven-3.8.6\bin;C:\Program Files\Git\mingw64\bin\curl.exe;C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\WindowsApps
The issue reported is this "Not found curl: null" in my pipeline
Please I am desperate, I dont know if I am doing something wrong. Please I need help
Thank you so much!
Need to provide ability to obtain WAR from VSTS Package Manager or other Repository such as Artifactory or other Maven defined repository.
This repository is currently missing a LICENSE file.
A license helps users understand how to use your project in a compliant manner. You can find the standard MIT license Microsoft uses at: https://github.com/microsoft/repo-templates/blob/main/shared/LICENSE.
If you would like to learn more about open source licenses, please visit the document at https://aka.ms/license (Microsoft-internal guidance).
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
I use the "Deploy to Tomcat" task to deploy a .war file to a Linux VM on azure. I realized that the task creates a new folder on the target environment. The folder name equals the {filename} of the uploaded war-file.
Since my filename was "ROOT.war" the task tries to create/copy the file into the ROOT folder of the Linux host, which is not possible.
It took me a while to figure that out, because the error message of the task was
curl: (55) Send failure: Connection reset by peer
##[error]Error: C:\Program Files\Git\usr\bin\curl.exe failed with return code: 55
Is it possible to provide better or more detailed feedback?
Regards,
Karsten
This repository misses the license file.
The severity of that varies from project to project, but my goal here is to attract some attention.
If it's not a problem, this issue can be closed.
I'm leaving it here just in case: https://help.github.com/articles/adding-a-license-to-a-repository/.
Thanks.
Giving unrelated error - "Error: ENOENT, no such file or directory 'some txt path'"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.