release pipeline
4 TopicsServer stops after the restart bash script pipeline task is finished
Hey Everyone, We are using bash script task to restart tomcat server after deployment is done. But the server is immediately stopped when this task is finished. We tried sleeping longer to let the script finish, but even after sleep time server just stops. We are unable to restart server after deployment. We also tried nohup and & to run the restart script in background, but no help. Can someone please help us, as this has halted our release1.2KViews0likes1CommentAccess pipeline variables in Azure Release for classic python task
I have a Python script that has url, token, location, and version as environment variables. I trigger it using theclassic Python task. I declared these variables inside the pipeline variables section, and inside the code, I did the following: import os os.environ['url'] os.environ['token'] but I getkeyerror: 'url' I came across thislink, which creates a variable group and passes the environment variables as arguments. But this step follows inline script based execution.5.7KViews0likes2CommentsExporting Json from Release Pipeline (Classic View) Agent Pool Information Missing
Hi All, I recently setup a rather dynamic release pipeline for our environment, I would like to export the release pipeline's json file and import it again and point it to a different artifact (build pipeline) So far everything works well, but when exporting the json file it seems like it does not export the Agent Pool config, it keeps the agentSpecification as "ubuntu-20.04" "deployPhases": [ { "deploymentInput": { "parallelExecution": { "parallelExecutionType": 0 }, "agentSpecification": { "identifier": "ubuntu-20.04" }, "skipArtifactsDownload": false, "artifactsDownloadInput": { "downloadInputs": [ { "alias": "", "artifactType": "Build", "artifactDownloadMode": "Skip", "artifactItems": [] } ] }, "queueId": 189, "demands": [], "enableAccessToken": true, "timeoutInMinutes": 0, "jobCancelTimeoutInMinutes": 1, "condition": "succeeded()", "overrideInputs": {} In turn, when I re-import this json file I have to go to the "Agent Job" tab and select the Agent Pool as "Azure Pipelines", and again select the Agent Specification as "ubuntu-20.4" Can someone please assist with the name/value so that i can update the exported json with the Azure Pipelines agentPool, I want to use this json file as a release pipeline template for a line of applications we have. What I have tried (purely thumb sucking the entry as: "agentPool": { "name": "Azure Pipelines", "poolType": "automation" }, "agentSpecification": { "identifier": "ubuntu-20.04" }, But the unfortunately did not work, the file imported fine but the value was not populated in the Agent job view. Best Regards.4.9KViews0likes0CommentsHow can we backup application and database during deployment in azure release pipeline?
Hi All, I am pretty much new to devops world and currently evaluating devops pipelines to automate deployments in our organisation. After doing some R&D, we are able setup build and release pipelines to deploy asp.net website to Azure VM - IIS deployment. But unable to figure out how to backup both application folder and database before deploying, to rollback to previous stage in case of any issues. Can anyone share your knowledge on this ? Thank you.1KViews0likes0Comments