Questions tagged [azure-devops]

Azure DevOps is a versatile collection of five distinct services that can be utilized collectively or separately. One of these services, Azure Pipelines, offers comprehensive build services for continuous integration (CI) along with effective release management capabilities for continuous delivery (CD), enabling seamless deployment across various cloud platforms as well as on-premises servers. Additionally, Azure Repos provides the advantage of limitless private Git hosting, while Azure Boards amply supports agile planning through its wide range of features such as issue tracking, Kanban boards, Scrum management, and intuitive dashboards. It's worth mentioning that there exists a separate tag specifically designed for Azure DevOps Server, formerly known as TFS (Team Foundation Server), which functions purely in an on-premises environment.

What is the process for setting up the configuration to retrieve npm packages from Jfrog artifacts for a YAML-based Azure CI Pipeline?

I am looking to set up an Azure DevOps yaml CI pipeline for a front-end angular app, specifically needing to retrieve all npm packages from Jfrog Artifacts in a defined way. Could someone kindly assist me with how to specify endpoints for pulling Jfrog np ...

The webpack-dev-server is throwing an error with the code "ENOENT

I recently inherited a React project that is hosted on Azure DevOps. I cloned the local repository and now need to downgrade the npm and node versions to the following: [email protected] [email protected] After successfully installing modul ...

Azure DevOps - npm unseen

I am facing an unusual issue with a deployment pipeline on Azure DevOps. There are two tasks involved: 1) Installing packages 2) Running npm with the installed packages The process seems straightforward. Here is what I have been doing: 1) Using a Comm ...

The Team Build process halts to allow the Gulp task to complete before moving forward

After successfully pushing my existing nodejs app to the VSTS repository, I incorporated three build tasks into the workflow. The first task, npm install, is running smoothly without any issues. However, when it comes to the Gulp task, which includes a ...

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 ...

Is it possible to update a file in a Bitbucket repository using Azure DevOps release pipeline?

I have a npm source code that requires building and pushing to the npmjs repository. Here are the details of the process: Build pipeline: 1) Fetch sources from Bitbucket repository 2) Retrieve the version number from package.json (e.g., 0.0.3), increase ...

Is there a way to update the version of an npm package in Azure DevOps without causing a new pipeline to be

Our Current Project Automation Utilizing Azure Pipelines (azure-pipelines.yml) for ci/cd automation, we have a configuration segment dedicated to finalizing the project versioning process before publishing to Azure Artifacts. Our goal is to seamlessly upd ...

Can someone guide me on finding my staticwebapp.config.json within Azure Devops for deploying Azure Static Web Apps during a release?

After setting up a pipeline to build the artifact for my Angular application, I encountered an issue with deployment where specific URLs would redirect me to a 404 error page. This problem seems to be related to the configuration in staticwebapp.config.jso ...

In order to launch an Angular project

Currently, I am in the process of creating a VSS web extension using Angular... To generate a .vsix file, I need to reference an HTML file. The challenge arises when working with Angular because we typically use ng serve which loads our page at http://lo ...

Running the 'npm test' command within Azure pipelines does not provide any output

In my Azure Pipeline, I have set up the following task: - script: npm run test --watch=false --loglevel verbose --single displayName: npm run tests When running this task on an Ubuntu agent with Puppeteer, the tests complete successfully: Chrome H ...

Troubleshooting GULP Build Task Failure in Visual Studio Team Services: Module Not Found Error

I've been working on setting up continuous integration for my project team. We are currently pushing an angular/node project to a git repository in Team Services. The build process runs smoothly until it encounters the gulp task. Before the gulp task, step ...

Issue arose following the update from Angular 5 to 6, impacting the VSTS build process

Upon upgrading from Angular 5 to 6, I successfully got it running locally. It builds and compiles with --prod. Integration into an .NET MVC application went smoothly. However, when the build on VSTS is triggered, a series of errors surface: node_modules&b ...

Struggling with npm publish following the configuration of Azure Artifacts feed

I'm facing a problem with npm install and npm publish in my Node.js project after setting up authentication with an Azure Artifacts feed. I've followed the documentation and made the required changes to my user and project level .npmrc file http ...

Expanding the npm packages available on the Azure DevOps Feed

My current project utilizes Angular 2.4 and includes a .npmrc file configured to use an internal registry. The build pipeline I have set up is throwing the following error: No matching version found for yargs@^3.32.0. In most cases you or one of your dep ...

Leveraging the power of Next.js and a tailored deployment strategy using Express and Node

Recently, I encountered an issue while trying to deploy my app that utilizes Next.js on the frontend (including some getStaticProps function) and a custom express/node.js backend on Azure. The backend is connected to MySQL, although I don't believe this is ...

Establish the environment variable for the NPM build process

When utilizing the terminal on my development machine, I am able to execute the following... SOME_VARIABLE=http://localhost:3000/ npm start ... and access the value of SOME_VARIABLE within the code using... process.env.SOME_VARIABLE My question arises ...

The On-Site Agent fails to retrieve certain NPM packages during the download process

Update: 2018-02-28 - including screenshot of build definition I've encountered an issue with an on-premise VSTS Agent. During the 'npm install' process, only about 20% of the packages are being installed without any error. However, when I m ...

The error message "The specified path could not be found" is thrown by electron-winstaller when trying to create a zip file from a directory using the Squirrel.Utility.CreateZipFromDirectory method. This

I'm currently in the process of creating an electron installer for the Windows platform using Azure DevOps. The electron-package command was successfully executed with npm run build (refer to my package.json). However, when attempting to create RELEAS ...

"Secure private npm packages for your project with Visual Studio Team Services and Git

My current setup involves using Visual Studio Team Services to run a build that includes the command npm install. The issue arises when npm tries to download packages via git+ssh, specifically from my SecondRepo which is the second repository in my project ...

Attempting to construct Electron application using VSTS results in an error message indicating, "Error: Please attempt to execute this command once more with root/Administrator privileges."

Struggling with NPM tasks while using VSTS to build an Electron app: Although I am not the developer, as a devops personnel, I am attempting to make it build in VSTS by executing the npm install VSTS task which seems successful. However, when I proceed to ...

"Encountering issues when trying to access private npm packages on Azure DevOps

I am currently facing a challenge with Azure DevOps while working on my node application. The issue arises when private npm packages encounter a 401 error during the npm install process in the pipeline. To address this, I have tried configuring an addition ...

Issue with Azure App Service on Windows: The file is not being unzipped in the wwwroot folder by Azure DevOps Release

I have successfully developed an application using NextJS My goal is to deploy this app on an Azure App service The deployment was a success on the Vercel server without any need for customization Currently, I am utilizing DevOps tools such as Pipelines ...

Store npm installation task in Visual Studio Team Services cache

After setting up a private agent in VSTS and globally installing NPM, I am facing an issue where each build task is taking around 12 minutes to install NPM packages. This extended time is affecting the efficiency of my builds. Is there a way to cache NPM ...

Error encountered during execution of protractor tests in Azure DevOps due to absence of selenium server jar file

Attempting to execute a protractor test within an Azure DevOps pipeline is resulting in the following error message. It appears that the jar file path is referencing my local drive, even though the tests are being executed on the Azure DevOps server. Any s ...

Issues with Azure DevOps arise during the npm install phase due to the module 'Selenium-Webdriver' not being found

I'm in the process of integrating Selenium IDE with Azure DevOps test plan. Within my release pipeline, I have an "NPM install" task that encountered an error stating: Error: Npm failed with return code: 1 The error log details are as follows: 2020-10-12 ...

Unleashing the full potential of Azure DevOps custom Tasks in VS Code and TypeScript: A guide to configuring input variables

Scenario: I have developed a custom build task for Azure DevOps. This task requires an input parameter, param1 The task is created using VS Code (v1.30.1) and TypeScript (tsc --version state: v3.2.2) Issue During debugging of the task, I am unable to pr ...

401 Unauthorized: Failure to install [Package name] from Azure DevOps feed using npm

Having an issue with AzureDevop artifacts and npm feeds. Keep getting a 401 Unauthorized exception when trying to run npm install. Any insights on what might be causing this problem? ...

While attempting to install a package from a TFS feed during the build process, an error was encountered stating: "Authentication

We have developed our own npm package and a project that is dependent on it. Rather than installing the package from a physical file, we want to publish it to a TFS feed repository. After publishing the package to the feed from my development machine, I u ...

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 ...

Azure pipeline: Command Line error: Bash exited with code '1'

While attempting to run my Cypress test using Azure Pipeline, I encountered the following problem: YAML file: # To configure triggers for Azure CI see # https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml ...

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 ...

Adding a log file to an Azure DevOps Test Execution

I have been encountering difficulties when trying to upload the log file generated from my automated tests in the Azure Release pipeline. My automated UI tests are conducted using selenium and MSTest. Initially, I believed that I could attach the file in t ...

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: ...

Incorporate an attachment from a test run while generating a Bug ticket within Azure DevOps

My goal is to automatically generate a Bug ticket in DevOps when a test run fails, including a screenshot in the attachments. However, when I try to create the Bug ticket, only error messages, stack trace, and other information appear in the Repro Steps se ...

Having trouble installing npm packages after adding the private `.npmrc` file to Azure

Having some trouble installing npm packages due to a .npmrc file set up for a private library hosted on Azure workspace. After creating a new config file, everything works smoothly in localhost. How can I include two registries in the .npmrc file, one for ...

Encountering an 'Authentication Failed' message while attempting to access the Azure DevOps Artifacts feed via npm, resulting in an E401 error

I am facing a challenge while trying to establish a connection to an Azure DevOps Artifacts feed as I keep encountering an E401 error. Interestingly, when I attempted the same on a different device, the connection was successful. Additionally, I have gone ...

There was an error encountered in the Recovery service Vault when attempting to add Policies for SQL Backup

I encountered an issue while setting up backup policies using Azure ARM Template for weekly SQL Backup. Any assistance would be greatly appreciated. It seems that the backupmanagementype for VM is AzureIaasVM, so for SQL it should be "backupManagementType ...

The ReactJS website is encountering issues when attempting to build in AzureDevOps, despite functioning properly

My reactJS App functions properly when run locally, but there are build failures when the same code is built using a pipeline on AzureDevOps. Could someone please explain why this might be happening? Here are the npm run build task logs from the build in ...

Is there a way to make the vss sdk treeview collapse automatically?

Is there a way to have the nodes of a combo control of type TreeView.ComboTreeBehaviorName collapsed by default? I've searched through the documentation at this link and this link, but couldn't find a solution. I also examined the types in vss.d.ts to se ...

Encountering an issue during deployment of NextJS Release with Azure Web App Deployment task

Struggling to deploy a NextJS or Node project on Azure using DevOps pipeline. I have the steps and configurations set up correctly in the Repo PR, build, and release triggers. However, when the job runs the "Azure Web App Deploy" task, it always encounters ...

Utilizing Font Awesome Pro within Azure DevOps

Is there a solution for integrating Fontawesome Pro with CI builds? I have successfully set up my build and Fontawesome Pro locally using these commands: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && \ npm config set ...

Challenges with TypeScript build in DevOps related to Material UI Box Component

Currently, I am facing an issue while trying to build a front end React Typescript application using Material ui in my build pipeline on Azure DevOps. The problem seems to be related to the code for the Material ui library. Despite successfully building th ...

"Encountering a Bad Request Error When Setting Up Power Automate Flow for SharePoint List and Azure DevOps Work Item Integration due to an

I have set up a Power Automate flow to track modifications made on a SharePoint List: https://i.stack.imgur.com/jMDbA.png Here is the response body I receive from the wiql query: https://i.stack.imgur.com/mlWtn.png In order to update the work item if i ...

What is the best way to connect my tests to send their results to Azure DevOps?

Our current pipeline includes: pulling code, running unit tests, conducting integration tests, building artefacts, and deploying. We are now looking to have our integration tests report results back to Azure DevOps. How can we achieve this? Our test proj ...

utilizing PM2 on a Windows server with a traditional Azure pipeline configuration

I am currently working on setting up a release pipeline using classic Azure pipelines for my Next.js project deployment on a self-hosted Windows server. I have configured IIS as a redirection server to redirect traffic to the Next.js application. However, ...

What might be causing the sluggish performance of AzureDevOps private NPM repository with node versions 14 and 16?

After upgrading NodeJs to version 14 (and also tried with version 16) on my MacOs using NVM, I deleted the package-lock.json and node_modules directory. When running npm i -verbose, I noticed that the installation process became extremely slow. For each pa ...

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 ...

Switching positions in Azure DevOps (Angular + API): How can the Angular configuration be modified for the designated slot?

Setting up the Angular app can be quite tricky. In our Azure Yaml pipeline publishing job, we tackle the challenge by executing a "token" replacement to tailor the configuration for the specific target environment within a tokenized artifact. Subsequently ...

How can you verify your identity with a private npm registry in Azure using a Dockerfile?

Below is my Dockerfile setup: FROM node:alpine WORKDIR ./usr/local/lib/node_modules/npm/ COPY .npmrc ./ COPY package.json ./ COPY package-lock.json ./ RUN npm ci COPY . . EXPOSE 3000 CMD ["npm", "run", "start-prod"] Th ...

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 ...

Encountering authentication issues while attempting to access a private npm registry through Azure DevOps pipeline

When attempting to utilize an npm package from a private repository hosted in a separate Azure DevOps organization, I encountered the following error during the npm install step: npm ERR! code E401 npm ERR! Unable to authenticate, need: Bearer authorizatio ...

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 ...

transferring a document onto Azure DevOps

Currently, I am working on a DevOps project named 'Test' and have downloaded it as a zip file onto my local machine. After making some code edits, I am now looking to upload the modified file back to the same directory in DevOps. Will this proces ...

Guide for choosing the appropriate VM T-shirt size within the Azure ARM Template

I am utilizing a VM deployment template where I specify the VM size using T-Shirt Sizes, for example, small = Standard_DS2_v2, medium = Standard_E4s_v3 and large = Standard_E32s_v3. These sizes are defined in an array within the variables section as shown ...

ADF CI Build Failure: Execution unsuccessful: node /home/shaadmin/myagent/_work/5/s/adf/build/downloads/main.js validate

Yesterday, our ADF CI Build was running smoothly based on the configuration outlined in the [Microsoft documentation][1]. However, today we encountered a sudden failure with the following error message: Command failed: node /home/shaadmin/myagent/_work/ ...

Are some packages missing from your Azure DevOps Artifacts library?

In my Azure DevOps setup, I have a feed configured with an upstream source of . When I execute the command yarn in my terminal, all the packages mentioned in my package.json file along with their dependencies get downloaded correctly to my machine. Howeve ...

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 ...

The results of Angular CI tests vary between local environment and DevOps platform

I've encountered an issue with my pipeline. While I am aware that my current Karma tests are not working properly, there seems to be a discrepancy between running the tests on my local machine and on DevOps pipelines. karma.conf.ci.js // Configuration f ...

What is the best way to access environment variables within a Script step in Azure DevOps?

Running the command 'npm run coverage' in an Azure DevOps Build pipeline requires 2 environment variables to be available for successful completion. Previously, the NPM Task was used for this purpose but it doesn't support passing environme ...

ChromeDriverService and Azure Pipelines Agents

Currently, I am automating Selenium tests in an Azure DevOps pipeline using C#. To improve debugging, I recently updated my code to include ChromeDriver logs, requiring me to make changes to utilize the ChromeDriverService. string binaryDir = Manag ...

Is it possible to implement a Node.js application within an Azure DevOps deployment process?

Recently, I embarked on my journey to learn Node.js and Azure DevOps. To get a better grasp of how things function in Azure DevOps, I attempted to execute a basic Node.js example. Unfortunately, I hit a roadblock when an error surfaced, leaving me unsure a ...