Posts

Showing posts from December, 2024

Free Style Pipeline in Jenkins

  Step 1: Install Jenkins and Access the Dashboard Ensure Jenkins is installed and running. You can access it via http://<your_server_ip>:8080 (default port). Log in to the Jenkins dashboard with your credentials. Step 2: Create a New Job On the Jenkins dashboard, click "New Item" . In the "Enter an item name" field, provide a name for your pipeline (e.g., MyFreestylePipeline ). Select "Freestyle project" and click "OK" . Step 3: Configure the Job In the General section, add a description (optional). Check "Discard old builds" if you want to limit the number of builds stored. (Optional) Check "Restrict where this project can be run" and specify a label if you want to run this job on specific nodes. Step 4: Configure Source Code Management In the Source Code Management section: Select "Git" (or other version control). Enter your repository URL. Provide credentials if necessary Step 5: Add Build Steps In ...

Power Shell UI Forms

 # Load the required assembly Add-Type -AssemblyName System.Windows.Forms # Create the main form $form = New-Object System.Windows.Forms.Form $form.Text = "Sample PowerShell GUI" $form.Size = New-Object System.Drawing.Size(300, 200) $form.StartPosition = "CenterScreen" # Create a label $label = New-Object System.Windows.Forms.Label $label.Text = "Enter your name:" $label.Location = New-Object System.Drawing.Point(10, 20) $label.Size = New-Object System.Drawing.Size(100, 20) $form.Controls.Add($label) # Create a text box $textBox = New-Object System.Windows.Forms.TextBox $textBox.Location = New-Object System.Drawing.Point(120, 20) $textBox.Size = New-Object System.Drawing.Size(150, 20) $form.Controls.Add($textBox) # Create a button $button = New-Object System.Windows.Forms.Button $button.Text = "Submit" $button.Location = New-Object System.Drawing.Point(10, 60) $button.Size = New-Object System.Drawing.Size(75, 30) $form.Controls.Add($button) # Add...