JenkinsUtility 1.0.6
dotnet add package JenkinsUtility --version 1.0.6
NuGet\Install-Package JenkinsUtility -Version 1.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JenkinsUtility" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JenkinsUtility --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JenkinsUtility, 1.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JenkinsUtility as a Cake Addin #addin nuget:?package=JenkinsUtility&version=1.0.6 // Install JenkinsUtility as a Cake Tool #tool nuget:?package=JenkinsUtility&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using JenkinsUtility;
namespace JenkinsUtilityTester
{
public partial class Form1 : Form
{
public Form1()
{
JenkinsUtility.JenkinsUtility jenkins = null;
StartPosition = FormStartPosition.CenterScreen;
Font = SystemInformation.MenuFont;
Text = "JenkinsUtilityTester";
var h = new TextBox().Height;
Panel panel4 = new Panel() {Parent=this, Dock= DockStyle.Top, Height = 400, };
ListView listViewArtifacts = new ListView()
{
Parent = panel4,
Dock = DockStyle.Left,
View = View.Details,
FullRowSelect = true,
HideSelection = false,
Width = 300,
};
listViewArtifacts.Columns.Add(new ColumnHeader() { Text = "ArtifactList", Width = 300, });
ListView listViewParams = new ListView()
{
Parent = panel4,
Dock = DockStyle.Left,
View = View.Details,
FullRowSelect = true,
HideSelection = false,
Width = 300,
};
listViewParams.Columns.Add(new ColumnHeader() { Text = "ParameterList", Width = 300, });
ListView listViewBuild = new ListView()
{
Parent = panel4,
Dock = DockStyle.Left,
View = View.Details,
FullRowSelect = true,
HideSelection = false,
Width=300,
};
listViewBuild.Columns.Add(new ColumnHeader() { Text = "BuildList", Width = 300, });
ToolStrip toolStrip = new ToolStrip() {Parent=this, };
ToolStripButton toolStripButtonConnect = new ToolStripButton() { Text="Connect",};
toolStrip.Items.Add(toolStripButtonConnect);
toolStripButtonConnect.Click += (sender, e) =>
{
Form f = new Form()
{
StartPosition = FormStartPosition.CenterScreen,
Font = SystemInformation.MenuFont,
Text = "Connect server",
};
Panel panelOKCancel = new Panel() { Parent=f, Dock = DockStyle.Top, Height =h, };
panelOKCancel.Controls.Add(new Button() { Text= "OK", DialogResult= DialogResult.OK, Dock = DockStyle.Right,});
panelOKCancel.Controls.Add(new Button() { Text = "Cancel", DialogResult = DialogResult.Cancel, Dock = DockStyle.Right, });
Panel panelPassword = new Panel() { Parent = f, Dock = DockStyle.Top, Height = h, };
TextBox textBoxPassword = new TextBox() { Parent = panelPassword, Dock = DockStyle.Left, PasswordChar = '*', };
Label labelPassword = new Label() { Parent = panelPassword, Dock = DockStyle.Left, Text = "Password", };
Panel panelUser = new Panel() { Parent = f, Dock = DockStyle.Top, Height = h, };
TextBox textBoxUser = new TextBox() { Parent = panelUser, Dock = DockStyle.Left, };
Label labelUser = new Label() { Parent = panelUser, Dock = DockStyle.Left, Text = "User", };
Panel panelProject = new Panel() { Parent = f, Dock = DockStyle.Top, Height = h, };
TextBox textBoxProject = new TextBox() { Parent = panelProject, Dock = DockStyle.Left, Text="test", };
Label labelProject = new Label() { Parent = panelProject, Dock = DockStyle.Left, Text = "Project", };
Panel panelUrl = new Panel() { Parent = f, Dock = DockStyle.Top, Height = h, };
TextBox textBoxUrl = new TextBox() { Parent = panelUrl, Dock = DockStyle.Left, Text = "http://localhost", };
Label labelUrl = new Label() { Parent = panelUrl, Dock = DockStyle.Left, Text = "Url", };
f.SizeChanged += (sender2, e2) =>
{
textBoxPassword.Width = panelPassword.ClientSize.Width - labelPassword.Width;
textBoxProject.Width = panelProject.ClientSize.Width - labelProject.Width;
textBoxUser.Width = panelUser.ClientSize.Width - labelUser.Width;
textBoxUrl.Width = panelUrl.ClientSize.Width - labelUrl.Width;
};
f.ClientSize = new Size(400, f.Controls.Cast<Control>().Select(x => x.Height).Sum());
if (f.ShowDialog() == DialogResult.OK)
{
jenkins = new JenkinsUtility.JenkinsUtility(textBoxUrl.Text,
textBoxProject.Text,
textBoxUser.Text,
textBoxPassword.Text);
if (jenkins != null)
{
var proj = jenkins.GetProject(2, "lastBuild[number]");
}
}
};
SizeChanged += (sender, e) =>
{
panel4.Height = ClientSize.Height - toolStrip.Height;
};
Size = new Size(900, 600);
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.