New answers tagged

0

The default behavior of Jenkins is to use the same node over and over unless it's unavailable. If you use labels you can target resources. Take a look at plugins like Least Load and Scoring Load Balancer to help distribute the load. CloudBees also provides an Even Scheduler plugin as a commercial offering. Kubernetes (e.g. Kubernetes Plugin) to schedule ...


1

Any CI/CD plugin can ultimately be scripted. However, using plugins gives you better centralized control. Consider the following scenario: Your SonarQube server location has to move to a new location. If you are using a script like the example you provided above, you would need to manually update every script. This process is error prone as you may ...


1

A Scripted Pipeline is literally a Groovy script, so you can just use if/else conditionals like you would in a normal Groovy script. if (env.BRANCH_NAME == 'master') { // do steps here } else { // do other steps here }


0

I have sometimes used the pattern where all pipeline things go in a .pipeline/ directory of the app, including the Jenkinsfile. I would, in your case, add several pipelines (ie, Jenkinsfiles) - one per microservice as you propose, and one for the web app. Then, you define independent multibranch pipeline jobs, based on the location of the pipelines. In ...


0

Your string isn't being interpolated at the correct time because it's in single quotes. Instead it's being passed to the checkout method as an un-interpolated string. By the time the checkout method interpolates the string, the perf variable is out of scope and so interpretation of this variable falls back to a blank string. Something like this is what ...


1

This article very clearly explains how to deploy a nodejs app using Jenkins: https://blog.couchbase.com/create-continuous-deployment-pipeline-nodejs-jenkins/


0

If I understand your question correctly then yes, you can create a windows VM in azure and install jenkins on it the same way as on a local machine. They're might be some differences in the configuration of the environment for example about security, user access, routing etc


3

Use the Groovy trim() method. For instance, def myTrimmedParam = params.myParam.trim().


0

Azure pipelines can be set up to automatically run a CI build from GitHub or a private Git repository sitting within Azure DevOps. Your build or release pipeline in Azure DevOps has Jenkins tasks so you can pass the build job to Jenkins to complete if desired. Also is there a plugin in Jenkins for Azure repos. Yes - This link will help you Alternatively ...


0

Yes this can be done, Azure Pipelines can ingest a yaml file, configuring the pipeline as code. These yaml files should be source controlled and the pipeline can be set up to build in an automated way. You can also reuse steps within the pipeline


Top 50 recent answers are included