Questions tagged [azure-pipelines]

Azure Pipelines offers complimentary build services (CI) catering to open source projects, conveniently accessible via the GitHub marketplace. Additionally, it delivers unparalleled release management capabilities for consistent delivery (CD) across both cloud and on-premises servers. Azure Pipelines empowers you to continuously construct, examine, and launch applications onto various platforms and clouds effortlessly. Please refrain from employing this label when addressing inquiries pertaining to Azure Data Factory pipelines.

Error: The type definition file for webpack-env cannot be located during the build process

Our team is working on a .net core Asp.net framework Single Page Application (SPA). We recently encountered an issue while using the Nuget package manager console in Visual Studio 2017. Despite executing various commands, including npm init and npm install ...

Is there a way to prevent Azure DevOps from automatically updating the node/npm version?

Just a couple of days ago, on December 1st, 2021, Azure DevOps surprised us by automatically updating the default version of node and npm, causing our build pipelines to break. before: 2021-11-30T15:30:01.113Z https://i.stack.imgur.com/PPtRq.png after: ...

Utilizing the .NPMRC File for Authentication in Azure Pipeline with NPM CI

My current focus is on enhancing the build time for an Azure pipeline that carries out an NPM install. To achieve this goal, I made the decision to transition from using npm install to npm ci. However, a hurdle presents itself when it comes to the authent ...

Automated Integration with Visual Studio Team Services: Empowering ASP.NET Core and Angular 4 Collaboration

I am currently working on an ASP.NET Core web app using Visual Studio 2017, and I am developing an Angular 4 front-end project in Visual Studio Code. The goal is for the Angular 4 project to be integrated with the Core web app, and I need to set up continu ...

Challenge Encountered while Generating Angular Docker Image using VSTS Pipeline

I'm currently in the process of setting up a VSTS pipeline to create a Docker Image for an Angular Application. I've chosen the "Hosted Windows Container" as the Agent pool, but I'm encountering the following error: Step 1/5: FROM nginx:alpine alpine: Pul ...

What is the process for authenticating an npm registry within a Docker container in Visual Studio Team Services (VSTS)?

I am currently working on setting up a Docker Compose build task for my Node.js project on VSTS. As we are transitioning to using a private npm registry on VSTS, it has become crucial for the Docker container to authenticate with the registry in order to d ...

The Azure pipeline will publish an npm package only if the version of the package is more recent than that currently available in the npm registry

When following the quick start guide for Azure DevOps Services with npm, it emphasizes in Step 6: Publish an npm package the importance of checking if the package name/version already exists in the public registry on npmjs.com before publishing: "If you h ...

Error: The specified module cannot be found. The client package path is not exported from the package

I've encountered an issue while using Next.js and NextAuth with Nginx. My build is failing, and I'm unsure of how to resolve this specific error. 2021-12-06T09:35:02.4779281Z https://nextjs.org/telemetry 2021-12-06T09:35:02.4779648Z 2021-12-06T09:35:02.7 ...

The test execution in Azure Dev Ops using react-scripts seems to be stuck indefinitely

Having trouble getting my React app's tests to stop running in Azure Dev Ops after they finish. The pipeline just hangs indefinitely while the tests have already completed. This is a simple create-react-app with a few tests included. Here is the YAML ...

Display only the essential NPM audit errors during the Azure Pipeline build process

When running NPM audit on my Azure Pipeline build, I am utilizing a custom command: npm audit --registry=https://registry.npmjs.org/ | Select-String -Pattern ( "Critical") -Context 0,10 The purpose of this command is to only fail the step if t ...

Simultaneously, the installation and build process of a JS application pipeline (utilizing Express for the server and Create-React-App for the client

Issue: My project consists of a server (Express Server for file uploading and deleting) and client (Front End Create-React-App). The structure of the project is as follows: Root Folder With Server Client Folder Each folder has its own package.json. Serv ...

Streamlined Integration with Package Repository Activity

Is it possible for DevOps to automatically trigger a build when a new version of one of our project's dependencies becomes available? If so, how can this be set up? In addition to initiating a build, I am also curious about the best approach to update my ...

Angular TSLint: Proceed to the following stage despite any encountered errors

I'm facing issues with TSLint in my Azure Devops Build Pipeline. Despite encountering lint errors, I need the build pipeline to proceed to the next step. How can I achieve this? Command Line: - script: | npm run lint > tsLintReport.txt disp ...

Custom Docker container running an Azure pipeline with npmAuthenticate task

I'm attempting to utilize the npmAuthenticate task in an Azure pipeline that is executing a script within a custom Docker container container: image: android_builder:37878 endpoint: sc-acr steps: - task: npmAuthenticate@0 inputs: workingFile: '. ...

Running tests using Selenium and Maven works fine on a local machine, but encounters an issue in Azure Pipeline with the error message "unable to access org.testng.Assert."

Running TestNG or Maven tests locally shows that all test cases are working correctly. However, when running the tests in a pipeline, an error is encountered stating "cannot access org.testng.Assert". Attached below are error screenshots of Azure Pipeline: ...

Encountering the SessionNotCreatedException error: Unable to initiate a new session. Response code 500 within the Azure pipeline

After setting up a pipeline in Azure-Devops and configuring a self-hosted agent for the same, I encountered an issue where it opens the browser but fails with a sessionNotCreatedException. Interestingly, when running the same code using STS or eclipse too ...

Obtain the angular version during the Azure build pipeline execution

Is there a way to retrieve the current version of Angular used in our project as we build it through the pipeline? We leverage Azure DevOps and utilize YML for configuring our pipelines. Although I have managed to extract the "key" for "angular/core" from ...

Tips on executing npm commands on Azure app service following a successful deployment via VSTS?

While I've successfully deployed from VSTS to Azure, I'm facing an issue with running npm after the deploy is complete. The current process involves running npm install for branch files, zipping them, copying to Azure, and deploying. However, I ...