![DevBObs](/img/default-banner.jpg)
- 26
- 105 825
DevBObs
United States
Registrace 1. 10. 2011
How-To for Azure DevOps Pipelines with templates
How to use templates to refactor pipeline codes in Azure DevOps.
Check this video and identify you can refactor your:
💡Anything that is repeated
💡What can be reused?
💡Extract into local templates.
💡Move it out current repository
💡Boilá, use it across other repositories.
And have a great final pipeline that is easier to:
🚀 Support.
🚀 Collaborate with.
🚀 Reuse across multiple repositories and teams.
Check this video and identify you can refactor your:
💡Anything that is repeated
💡What can be reused?
💡Extract into local templates.
💡Move it out current repository
💡Boilá, use it across other repositories.
And have a great final pipeline that is easier to:
🚀 Support.
🚀 Collaborate with.
🚀 Reuse across multiple repositories and teams.
zhlédnutí: 388
Video
Jenkins running as a Service
zhlédnutí 507Před 4 lety
I am explaining and providing the Unix service file to configure and run Jenkins as a service instead of doing the single execution in the command line.
How to use service account with gcloud sdk cli
zhlédnutí 3,1KPřed 4 lety
In this video, I show how to login to gcloud using the gcloud sdk cli with service account json files instead of using browser token. I provide the steps of how to create the service account using the google cloud web console, then I explain the gcloud auth activate-service-account command. I finish this short video with a list of benefits when you go with this approach.
Example of variables configuration with Azure DevOps pipelines using YAML syntax
zhlédnutí 13KPřed 4 lety
In this video, I show five examples of how to configure and use variables with your Azure DevOps Pipeline using YAML syntax. I explain how to configure global vs local variables, how to get the variable values using the variable syntax or as an environment variable. I show how to define secrets and how to access to those secrets using variable syntax and what is required in order to get those s...
Bitbucket CI/CD pipelines configuration
zhlédnutí 32KPřed 4 lety
In this video, I show a simple demo of Bitbucket CI/CD pipelines using YAML configuration where I build a new docker image, using custom variables like username and password in order to login into my docker hub repository, and pipeline variables like BITBUCKET_COMMIT. Please leave a comment if you want to see more examples or something else related to these new features. Bitbucket pipelines doc...
How to configure Self-Hosted Linux Agent in Azure DevOps
zhlédnutí 10KPřed 4 lety
In this video, I show easy is to configure a self-hosted Linux agent for your Azure DevOps project. In the first part, I start with an interactive mode configuration, where you have to provide all the required parameters one by one. In the second part, I demo how to do a single-command line configuration, which is a more powerful way if you are thinking about automating your agent's creation wi...
How to trigger downstream jobs with Jenkins pipeline
zhlédnutí 14KPřed 4 lety
In this video, I show demos about how to trigger a Jenkins downstream job using declarative scripted syntax, also I provide examples of how to configure multiple parameters as an input, and how to get the status of the triggered job. All related to Jenkins build job jenkins.io/doc/pipeline/steps/pipeline-build-step/
How to configure Jenkins options
zhlédnutí 787Před 4 lety
In this video, I explain how to configure options for Jenkinsfile with a declarative syntax. I show four demos of how to rotate build numbers, discard a number of builds, define numbers of retries, and how to specify a timeout. If you want to learn more, below are the links I used with all the details from the official documentation. Links: Jenkins options jenkins.io/doc/book/pipeline/syntax/#o...
How to Install Jenkins from zero using war file
zhlédnutí 1,7KPřed 4 lety
In this video, I show how to install a Jenkins server using a war file. I explain steps by steps on how to download the war file, install the java version, and start the simplest configuration with the default plugins. I use an AWS account but it is not a requirement, any server can be used in this case if you follow the steps for the installation. These are the links I followed for this video:...
Cómo instalar Jenkins desde cero usando war file
zhlédnutí 757Před 4 lety
Hola, este video muestro los pasos para instalar Jenkins desde cero. Para esto me basé en la documentación de Jenkins y cómo recursos utilicé mi cuenta de AWS para la creación de una instance EC2, y seleccioné la imagen de Ubuntu 18.04 LTS. No es necesaría la cuenta de AWS no es obligatorio. También les dejo del link con la documentación utilizada para este video: Jenkins documentación jenkins....
Cómo ejecutar estados de Jenkins en sequencia vs paralelos.
zhlédnutí 539Před 4 lety
En este video, enseño como configurar la ejecución de estados de Jenkins en paralelo y en sequencia usando una sintaxis declarativa. Además muestro como ejecutar también pasos dentro de un estado de forma paralela. Ofrezco algunas ideas concluyentes sobre cuando y como utilizar estos enfoques para diferentes casos.
How to configure Jenkins Stages Parallel vs Sequential
zhlédnutí 6KPřed 4 lety
In this video, I explain how to configure the Jenkins stages for Parallel vs Sequential execution using declarative syntax. I also show an extra example of how to configure steps execution in parallel. I provide examples of when and how to use these approaches and what should be good practices in cases like theses.
Cómo configurar agentes docker para Jenkins usando sintaxis declarativa
zhlédnutí 393Před 4 lety
En este video muestro cómo configurar agentes de Jenkins con Docker, usando una sintaxis declarativa. Explico un poco el enfoque y beneficios que provee tanto para equipos de desarrollo como para administradores de Jenkins.
How to configure Jenkins Agent with Docker
zhlédnutí 9KPřed 4 lety
In this video, I show how to configure a Jenkins agent using docker with configuration as code using declarative syntax. I also share the benefits of using this approach, and how it can help you as a Jenkins administrator.
Cómo configurar agentes de Jenkins por estado vs global
zhlédnutí 493Před 4 lety
Cómo configurar agentes de Jenkins por estado vs global
How to configure Jenkins to use agent any
zhlédnutí 1,4KPřed 4 lety
How to configure Jenkins to use agent any
Azure DevOps - How to manage Security and Compliance for Git Repositories
zhlédnutí 3,3KPřed 4 lety
Azure DevOps - How to manage Security and Compliance for Git Repositories
Azure DevOps - Different ways to add git repositories
zhlédnutí 4,4KPřed 4 lety
Azure DevOps - Different ways to add git repositories
Azure DevOps - How to configure Project Overview
zhlédnutí 656Před 4 lety
Azure DevOps - How to configure Project Overview
Azure DevOps - Overview of Project, Board, Repos, Pipelines, Test Plan and Artifacts
zhlédnutí 2,1KPřed 4 lety
Azure DevOps - Overview of Project, Board, Repos, Pipelines, Test Plan and Artifacts
Powershell utility to record any command executed on Console
zhlédnutí 103Před 6 lety
Powershell utility to record any command executed on Console
Install Jenkins Server using Docker image
zhlédnutí 489Před 6 lety
Install Jenkins Server using Docker image
Recording Console Commands Using Script/Scriptreplay
zhlédnutí 263Před 6 lety
Recording Console Commands Using Script/Scriptreplay
Hi bob, my name is shiv I stay in Tampa are you coming to 16th April event in amateur works in Tampa let’s meet for collaborations and have more conversations.please let me know.
Hello. I don't know about the event. But sure, let me know and I will try to be there.
could you post starter and release jobs groovy files please.
Sorry for delayed answer. Could you elaborate more so I can try to help?
I have a project repository on Bitbucket with approximately 600 branches, including features and hotfix branches. I've recently created a new pipeline in Bitbucket to scan the code using SonarCloud. I've also created a bitbucket-pipelines.yml file in the master branch. My goal is to apply this pipeline configuration to all existing branches. Currently, the bitbucket-pipelines.yml file is only in the master branch. When I make changes in the master branch, the pipeline is triggered, but it doesn't trigger when I make changes in any other branch. Can you please provide a solution for this issue?
Dude, is there any tutorial for bitbucket cicd for aws ec2(ubuntu)
I want detailed explanation bro.. Using this bit bucket for project
Thanks , Good explanation. I want to pass group of variables to python script file from azure pipeline.yml Can you please help me .
Did you solve the challenge? I was out for a while.
Great videos! I do not see more recent content :(
If you have 10 repos and you need a particular user to only see a specific repo without having access to view all repos , how it can be done ?
for more content on Azure DevOps, watch here: czcams.com/channels/IHRqMTGXSdVw0CCYyFH1Hg.html
Hey, Thank you for the video. It's really nice I want downstream job to be triggered only when my upstream in successful, can we do that ?
Yes you can.
You have to use the variables result and ask for == SUCCESS and not Null. Sometimes the job doesn't fail and the result variable is null.
Most true helpful an information with awesome examples!
I have been trying to run the following but it keeps throwing an error saying No item named /var/lib/jenkins/workspace/jenkins-script/jenkinsMain found build job: "/var/lib/jenkins/workspace/jenkins-script/jenkinsMain", parameters: [ [ $class:'StringParameterValue',name: 'buildSteps',value: 'build/deploy'] ]
Hi, i am also facing same issue. Did you figured out how to resolve it?
I hope you both solve the issue. I was out for a while.
Thanks for the Nice video. May I know how to set environment/global variables so that they can be used across stages. I have used environment {} for static. To create dynamic enviroment variables I want to clarify what is the best way to do it.
Excellet work! Thank you so much.
Really helpful, thanks man.
The first machine where you install your agent ..should be always running ..right ?
It depends on the goal. It should be an always runner agent.
Hi, I'm wondering if it is possible to tigger another pipeline job on different Jenkins pod?
Yes, absolutely
Thanks for the video. I was banging my head because I was using the PAT that I had created for git which I only restricted to source control access only! Make sure the PAT you use has correct access!
Glad it helped!
How do you load environment variables from file in Azure yaml?
You will have to do it dynamically, loading the file and using macros for it
Hi..thanks for the video. Is it possible to send a user input as a parameter from one pipeline to other instead of predefined jenkins variable build number
Yes it is. Use the input feature, create an environment variable and send it in the parameter section to the other side.
Go to the input section here www.jenkins.io/doc/book/pipeline/syntax/ take a look how you can catch the value and that value here, can be send to the other jenkins job as a parameter too. 😊
Hi, it's possible to set a propert to block download zip file with object from branch?
Great video man! I was looking for a downstream pipeline trigger and parametar sharing option for a whole day! Your work is appreciated!
how to add multi-agent in same pool?
Does it need the same setup for the azure container instances as an agent?
Concise, detailed and well explained examples.
Great video! Thanks a lot!
Very well explained. How to keep the agent always in online state even if we close the terminal?
ya i aso still looking at this. is that the terminal can not closed?
Sorry for delayed answer. I was out for long time. Did you solve the challenge?
Hello and thanks for the video ! What would be the proper way to keep the Linux agent online ? Adding ./run.sh as a startup service or something... ?
Yes. Keep it as a service.
you can try: nohup run.sh &
My requirement is : How can i use the Build_Number of Job1 in Job2? Job2 has to send a mail which has subject and it will display Job1 Build_Number Please Suggest?
You can use BUILD_NUMBER environment variable and send it to next downstream job.
@@DevBObs Thanks for your reply. In this case,Do these two jobs need parameter plugin or these can be independent, If so,can you provide some pipeline script also?
Great explanation and verry usefull. Thanks!
Hello! I would like to know if i want to create a subproject on the page using pipeline script how do i do it? Because for freestyle projects the downstream projects will be shown on the page but not for pipeline and i am currently using pipeline and i want to display the downstream project! Looking forward to your reply :)
You wont see it. It is a Jenkins ui design. The downstream jobs are going to be shown in the logs. 😉
@@DevBObs oh thank you for replying!! Is it because it has to be triggered by an upstream project for the Subproject section to appear? This was what i read online about the plugin!
Estoy iniciando en integracion continua, no entendi como lo haria de manera local, sin cuenta AWS
Necesitas instalar Java y luego puedes descargar el .jar y listo. Son los mismos pasos para unix o window
I didn't know Azure pipline variables also functioned as System Environment Variables for that application, thanks! That saved me a lot of time.
Hi, Can you please help me on how can I attach my downstream job to my upstream pipeline Basically I want my pipeline (upstream job) should be integrated with the downstream job
Hi. Sorry i didn't get the question. This is actually what i am doing in the job. The job excution can be anything. Is your downstream job a pipeline too or simply a job?
@@DevBObs Basically my upstream job is triggering the downstream job and it ends there, from there my downstream job starts I want like my upstream should wait till the time my downstream job is completed
@@ravipremani6201 ok got it. You can add an extra property to the job definition. After propagate you can add wait: true. That will wait until downstream job finished.
@@ravipremani6201 please let me know whether that worked or not.
@@DevBObs so when I kept the wait : true property it is waiting in the upstream job itself it is not going in the downstream job My upstream job takes max 2 seconds to complete
Thanks for the video very useful.
Excellent explanation! Thanks a lot mate
Glad it helped! If you are interested in this topic let me know and I will try to do something else later.
@@DevBObs Yeah sure! Always interested in good quality content like this one. Keep it up!
I followed the same steps and When I run the pipeline, I am getting an error message “##[error]unable to read data from the transport connection: connection reset by peer”. Could you please help on resolving this?
what the application did you run the command. After I run some error happen
and the config command not working
Did you solve the problem?
How to use Secret variables within child templates?
I want to ssh multiple remote servers in parallel and perform some executions. How can I perform that in Jenkins?
I will recommend taking a look at Ansible. You can execute Ansible with Jenkins but if that is the main goal. The right tool will be Ansible and there are multiple reasons why you should do it that way rather than over-complicating your solution with just Jenkins.
how to run a specific stage on all nodes matching a label?
Great question. Same way you define an agent at root level, it is possible to do the same at stage level. Take a look at the documentation www.jenkins.io/doc/book/pipeline/syntax/#stage-level-agents
Awesome! Thanks! but I still can't understand pipelines lol
It is easy. Actually, once you start working with a kind of pipeline you will be able to understand the other ones.
Hi Sir - Can you help me with how to sync two repositories with different regions. one repo used by some other team and one used by some other. Is there any script available to sync both same repositories? repo is bitbucket.
Try the git repository mirror. I don't think is a good solution because I think you are looking for both team using different repositories and keep both in sync right? I know you can do mirroring but if something is changed in the destination repo then the mirror is broken. That is a homework and pending task.
@@DevBObs basically both are repos are replica but only difference between repo 1 is used by dev team where they working dev related work and second repo is for selenium test project where test automation tam is writing the test cases.. So bottom line is to sync the code.. without doing manual stuff
mindblowing explanation, hats off to you sir. I have 1 question like what is the difference between interactive and service setup?
Hi. Interactive you have to manually run the configuration. As a service is the there is any interruption, the service will try to restore the agents.
How to decide during runtime on which stages to run in parallel...for example I pass the stage names in build with parameters and those stages only should run in parallel...please help with the solution
You can create a share library and make decision based on parameters. Keep in mind you can run a specific pipeline based on your inputs. You define both but you decide when to run which one.
Very helpful guide. Helped me a lot! Thank you!
Glad to hear it!
I have tried this with ubuntu 20.04. I provide the url and the personal access token but it does not even try to connect. Any idea? the agent version I am using is V2.187.2. Thanks in advance.
Question: this PIPELINE option comes in a Premium Bitbucket version? because I don't see this option in the repositories of my Work place
Very nice ! Can we automate to repository changes of github to Azure git repository using Jenkins job. Please let me know if you have created any video on this.
Very nice tutorial, excellent !!
Thanks a lot!