Ejemplo n.º 1
0
        public JenkinsJobPicker(JenkinsConfigurer configurer)
        {
            //if (configurer == null)
            //    return;

            //this.Init += (s,e) =>
            //    this.Items.AddRange(
            //        new JenkinsClient(configurer)
            //        .GetJobNames()
            //        .Select(j => new ListItem(j)));
        }
Ejemplo n.º 2
0
        public override ExtensionConfigurerBase CreateFromForm()
        {
            var configurer = new JenkinsConfigurer
            {
                ServerUrl = this.txtServerUrl.Text
            };

            if (!string.IsNullOrEmpty(this.txtUsername.Text))
            {
                configurer.Username = this.txtUsername.Text;
                configurer.Password = this.txtPassword.Text;
            }

            return(configurer);
        }
Ejemplo n.º 3
0
        private static void DownloadSingleArtifactInternal(JenkinsConfigurer configurer, string job, string buildNumber, string fileName, JenkinsBuildArtifact artifact, ILogger logger)
        {
            var client = new JenkinsClient(configurer, logger);

            client.DownloadSingleArtifactAsync(job, buildNumber, fileName, artifact).WaitAndUnwrapExceptions();
        }
Ejemplo n.º 4
0
 public JenkinsClient(JenkinsConfigurer config, ILogger logger = null)
 {
     this.config = config;
     this.logger = logger;
 }