Active Choices Jenkins Parameters | Jenkins Parameters: Dynamic Parameterization Using Groovy Script

  Рет қаралды 12,000

AJ AUTOMATION

AJ AUTOMATION

Күн бұрын

▶️ In this Jenkins Parameters session, We will learn how to Get dynamic Values for Active Choices Parameters / Active choices Reactive parameters using Groovy Script and Property File in Jenkins Parameterized Job.
▶️ Create a Property file and add keys and values
▶️ Add Active choices parameter and Active choices reactive parameters in Jenkins job configurations
▶️ Add Groovy script shown in the video
▶️ Apply and save
▶️ Approve the script changes as admin
▶️ Verify the build parameters and their values from UI
======================================
***************AJ AUTOMATION*************
======================================
Hi guys, Please share and Like the content whichever you find informative to reach more beginner candidates learning Test Automation. Thanks for your Support !!
🔔 Learn automation from basic !! 🔔
✅ Let's Learn the Concept in 5 To 10 Mins :=
• Test Automation Interv...
✅ Selenium series videos Playlist :=
• Selenium tutorial for ...
✅ Maven Tool videos playlist :=
• Maven Tool - Learn Bas...
✅ Selenium WebDriver Exceptions Playlist :=
• Selenium WebDriver Exc...
✅ Selenium Grid With Docker:==
• Selenium Grid With Doc...
✅ Jenkins Tool Series :==
• Jenkins Tool Sessions ...
✅ Upload and Download Files in Selenium :=
• Selenium WebDriver - U...
✅ Excel and CSV files operations :=
• Excel and CSV -- Read ...
✅ Java Language Concepts :=
• Java Language Concepts...
✅TestNG Framework Videos:=
• TestNG Introduction an...
✅ Become Master in Xpath:=
• Xpath Introduction
✅ Protractor series videos playlist :=
• Let's Learn Protractor...
✅ Recent Uploads :=
• Recent Uploaded Videos
✅ GitHub Repo:= github.com/aja...
⚡️ Thanks for your support !! ⚡️
======================================
*************** Thanks for watching !!*************
======================================
⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️
#jenkins #jenkinstutorial

Пікірлер: 16
@AJAUTOMATION
@AJAUTOMATION 2 жыл бұрын
### Jenkins Parameters Session PARTS### PART1 - kzbin.info/www/bejne/e3WqoGptopdqfJY PART2 - kzbin.info/www/bejne/jZvToX6Dfcdjepo PART3 - kzbin.info/www/bejne/j4HXZqyobsmSr80 PART4 - kzbin.info/www/bejne/n6LFXoiueJaAetE
@knownlimits2800
@knownlimits2800 7 ай бұрын
Is there a way that if I have multiple projects in git, am I able to pick the project name and it generates the branches for which ever project I pick, to deploy? I want to be able to build the parameters, pick the project name, generate the branches based on project name, then pick whatever branch I want to build to deploy
@chikosan99
@chikosan99 Жыл бұрын
Hi can you share the final Jenkinsfile Thanks
@ashokreddy8936
@ashokreddy8936 10 ай бұрын
Is it possible to disable the remaining individual parameters based on their selection in choice pameter or kindly suggest anything for this case For example if i select ashok as the choice in choice parameter need to enable that related individual parameters like education,date of birth etc., and choice as payments in choice parameter need enable amount,tax etc., like this i need some suggestion
@AJAUTOMATION
@AJAUTOMATION 10 ай бұрын
not sure if we can disable the parameter but following can be achieved with setting dependency with Active choice parameters like if u select Option1 then it will show SubOption1_1, SubOption1_2 Option2 then will show SubOption2_1, SubOption2_2 I don't have not created video for this yet ...will create soon
@Mona001-01g
@Mona001-01g Жыл бұрын
can the same be done with a yaml file instead of groovy?
@AJAUTOMATION
@AJAUTOMATION Жыл бұрын
I don't have the exact configuration.. But as per my knowledge in jenkins file we can read yaml file script readyml function from Pipeline utility steps plugin... I am sure you can easily find solution on Internet,other KZbin channels
@MRReD-Gaming
@MRReD-Gaming Жыл бұрын
You are referring to Jenkins job builder
@MRReD-Gaming
@MRReD-Gaming Жыл бұрын
But the pipeline code you need to add in groovy file
@prashanthselvaraj7771
@prashanthselvaraj7771 Жыл бұрын
Hi sir I want to do the same example but I want Jenkins to pull the property file from gitlab instead of local path. Can you plz guide me
@AJAUTOMATION
@AJAUTOMATION Жыл бұрын
Yes u can do it.. you can keep it in gitlab repo. And fetch it on the machine or some location where ur running jenkins job, That location should be accessible for jenkins... That location u can provide for the property file. U need to use " Inject environment variables to the build process" in jenkins job..
@ullaschandrakar8557
@ullaschandrakar8557 Жыл бұрын
How could we get the rows for excel in the same groovy script @AJ Automation
@MrJayantadey
@MrJayantadey 10 ай бұрын
This is good but still you need to change each jenkins job because in your groovy script you return the array value like arr[0], arr[1] like this. In real project you don't know how many value will be in your properties.
@mdniyazhashmi
@mdniyazhashmi 2 жыл бұрын
can you please let me know how to configure pipeline script for local or remote execution
@saswatimishra6202
@saswatimishra6202 2 жыл бұрын
Hi sir , Can you please explain how to number of version dependent upon the deployment type from a properties file or grovy file using depdency chain parameter
@AJAUTOMATION
@AJAUTOMATION 2 жыл бұрын
I haven't done that but will check..
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Complete Jenkins Pipeline Tutorial | Jenkinsfile explained
35:06
TechWorld with Nana
Рет қаралды 813 М.
How to Read a Properties File Using Jenkins
14:25
CloudBeesTV
Рет қаралды 12 М.
Getting Started With Shared Libraries in Jenkins
23:23
CloudBeesTV
Рет қаралды 85 М.
Jenkins parameterisation to run selenium tests
31:27
qavbox
Рет қаралды 5 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН