https://www.youtube.com/watch?v=7KCS70sCoK0&t=843s https://plugins.jenkins.io/ ------------------------------------------------------------------------------------------------------------------------------- Post Job -- some automated script such as sending an email etc on the status of the built whether it is successful or not. Define conditional run of the steps for instance you want to run the test in development branch build . The current / active branch name in the build is always available in the jenkins file through and environmental that jenkins provides it . BRANCH_NAME /OR env.BRANCH_NAME check if this is dev branch This part of the buuild will only execute if the current branch is dev. If you only want to build your application when there are code changes. if branch name and code changes are true CODE_CHANGES is the variable that you define yourself globally like below. getGitChanges() -- This would be a groovy script to check if there is any changes mad...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ How to integrate Jenkins Jobs with Github Webhooks . We want to trigger Jenkins Job Automatically whenever Git commits a push to the GitHub server. The author uses a Maven Based Java Project he wants to configure this repo as part of his Jenkins. Lets go to Jenkins and create a New Job there. Lets make it free style project and click Okay. Under Score Code Management : copy the URL that is his repository . The scenario is whenever someone pushes a commit into this repository the Jenkins Job must trigger. The webhook triggers from GitHub. Open your repository -- Go to Settings -- Web-Hooks -- Add a Webhook -- We need to put this Payload URL . That URL will be Jenkins URL You need to put Jenkins URL:8080(Port on which Jenkins is running on) / github-wenhook/ don't forget that ending / that is mand...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ https://www.youtube.com/watch?v=FX322RVNGj4 Windows to connect to OCI https://docs.oracle.com/en/solutions/infrastructure-components-to-deploy-peoplesoft/ebs-configuring-terraform-windows-systems.html#GUID-E842E56A-B4E1-4A0C-9015-0EABED56B35C ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Created 3 Compute Instances on OCI . 1. Jenkins server : OPA-Instance_Sreejith_1 Step 1 : Installed Terraform on Windows env-vars.ps1 file To set the environment variables specified in the env-vars file, launch Windows PowerShell, navigate to the folder where your Terraform modules are located, and enter: env-vars.ps1 This runs the env-vars.ps1 file, which sets all the variables specified in this file for the current session. check the setting> dir env: https://www.terraform.io/downloads Clicked on 386 Unzipped in ...
Comments
Post a Comment