Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
See the documentation for more options:
https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(
forkCount: '1C', // Run a JVM per core in tests
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
configurations: [
[platform: 'linux', jdk: 11],
[platform: 'windows', jdk: 8]
]
)
14 changes: 8 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.16</version>
<version>4.51</version>
<relativePath />
</parent>
<properties>
<jenkins.version>2.338</jenkins.version>
<java.level>8</java.level>
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<jenkins.baseline>2.346</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
<hudsonTags>buildwrapper</hudsonTags>
<findbugs.skip>true</findbugs.skip>
</properties>
<scm>
<connection>scm:git:git://github.com/jenkinsci/testingbot-plugin.git</connection>
<connection>scm:git:https://github.com/jenkinsci/testingbot-plugin.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/testingbot-plugin.git</developerConnection>
<tag>testingbot-1.20-SNAPSHOT</tag>
</scm>
Expand Down Expand Up @@ -67,8 +69,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.235.x</artifactId>
<version>25</version>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>1763.v092b_8980a_f5e</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/testingbot/TestingBotBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
import hudson.tasks.Builder;
import hudson.tasks.BuildStepDescriptor;
import hudson.util.ListBoxModel;
import java.io.*;
import java.io.File;
import java.io.IOException;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.StaplerRequest;

import java.nio.file.Paths;
import com.cloudbees.plugins.credentials.CredentialsMatchers;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardListBoxModel;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/testingbot/TestingBotCredentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.cloudbees.plugins.credentials.common.IdCredentials;
import com.cloudbees.plugins.credentials.common.StandardCredentials;
import com.cloudbees.plugins.credentials.domains.Domain;
import com.cloudbees.plugins.credentials.domains.DomainRequirement;
import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/testingbot/TestingBotReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
*/
import com.testingbot.testingbotrest.TestingbotREST;
import hudson.model.AbstractBuild;
import hudson.model.Run;
import hudson.tasks.junit.CaseResult;
import hudson.tasks.junit.TestAction;
import java.util.Collections;
import java.util.List;
import testingbot.TestingBotBuildWrapper.BuildWrapperItem;

/**
* Show videos for the tests.
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/testingbot/TestingBotTestEmbed.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

import hudson.model.Run;
import jenkins.model.RunAction2;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

import javax.servlet.ServletException;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

public class TestingBotTestEmbed implements RunAction2 {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/testingbot/pipeline/TestingBotStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardListBoxModel;
import com.cloudbees.plugins.credentials.common.StandardUsernameListBoxModel;
import com.cloudbees.plugins.credentials.domains.DomainRequirement;
import com.google.inject.Inject;
import hudson.Extension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import testingbot.TestReporter;

public class TestingBotTestPublisher extends Recorder implements SimpleBuildStep {
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/testingbot/pipeline/TestingBotTunnelStep.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package testingbot.pipeline;

import com.cloudbees.plugins.credentials.CredentialsMatchers;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardListBoxModel;
import com.cloudbees.plugins.credentials.common.StandardUsernameListBoxModel;
import com.cloudbees.plugins.credentials.domains.DomainRequirement;
import com.google.inject.Inject;
import com.testingbot.tunnel.Api;
import com.testingbot.tunnel.App;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
import hudson.Util;
import hudson.model.Computer;
import hudson.model.Item;
import hudson.model.Job;
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/index.jelly
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?jelly escape-by-default='true'?>
<div>
This plugin integrates videos/screenshots of your TestingBot.com Selenium tests
</div>