Tomcat Octopus Pipeline
Tomcat Octopus pipeline execution
In order to pass scripts using Octopus, script should be created in the tool registry.
Script values can be stored in DB.
We can use this script for passing it via Octopus and use it in the Octopus Deploy step configuration.
Creating Scripts
Login to https://portal.opsera.io -> Tool Registry -> Click Scripts tab->Click on New Script
Click on the new script give Name, select language as PowerShell and give script details and click on the Create button. Values will be stored in DB.
Â
Creating Tomcat Manager in Octopus Tool
Navigate to the existing Octopus tool in Tool Registry -> Applications tab -> Create -> Tomcat Manager
Â
Enter Tomcat Instance Name
Select the space name as Default
Provide tomcat credentials and save
Â
Creating pipeline with Octopus Deploy step and adding the Scripts
Click on New pipeline or Existing Octopus pipeline.
Â
Click on the Octopus deploy step ->Config ->Platform Type ->select Deploy to Tomcat via Manager. Select created Tomcat manager in Tomcat Manager field.
Â
2. Enable Custom Deployment Scripts -> Select created script in Pre-Deployment,Deployment and Post-Deployment fields.
Â
Â
Pipeline Execution
Click Start Pipeline button for execution.
Â
Octopus Portal validation
Select project -> Runcount should be updated correctly
Â
Â
Click on Process in the project.
Â
Â
Selected war file in command line step in pipeline.
File in Git
Â
Browser Validation
Â