Skip to content

Commit

Permalink
Refresh plugin (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Nov 9, 2022
1 parent b68617e commit d2f5cd5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
22 changes: 9 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.38</version>
<version>4.50</version>
<relativePath />
</parent>

<artifactId>azure-container-agents</artifactId>
<version>${changelist}</version>
<packaging>hpi</packaging>

<name>Azure Container Agents Plugin</name>
<description>Provisions agents on Azure Container Instances</description>
<url>https://github.com/jenkinsci/azure-container-agents-plugin</url>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<licenses>
<license>
<name>MIT License</name>
Expand All @@ -36,20 +36,16 @@
</developers>

<scm>
<connection>scm:git:ssh://git@github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:ssh://[email protected]/${gitHubRepo}.git</developerConnection>
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
<url>https://github.com/${gitHubRepo}</url>
<tag>${scmTag}</tag>
</scm>

<properties>
<changelist>9999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/azure-container-agents-plugin</gitHubRepo>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jenkins.version>2.289.3</jenkins.version>
<java.level>8</java.level>
<maven.javadoc.skip>true</maven.javadoc.skip>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<jenkins.version>2.332.3</jenkins.version>
<docker-commons.version>1.19</docker-commons.version>
</properties>

Expand Down Expand Up @@ -138,7 +134,7 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.289.x</artifactId>
<artifactId>bom-2.332.x</artifactId>
<version>1289.v5c4b_1c43511b_</version>
<scope>import</scope>
<type>pom</type>
Expand Down Expand Up @@ -182,7 +178,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>9.2.1</version>
<version>9.3</version>
</dependency>
</dependencies>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.azure.resourcemanager.resources.models.Deployment;
import com.azure.resourcemanager.resources.models.GenericResource;
import com.microsoft.jenkins.containeragents.util.AzureContainerUtils;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
import hudson.model.AsyncPeriodicWork;
import hudson.model.Computer;
Expand Down Expand Up @@ -168,6 +169,7 @@ public void cleanDeployments() {
cleanDeployments(SUCCESSFUL_DEPLOYMENT_TIMEOUT_IN_MINUTES, FAILING_DEPLOYMENT_TIMEOUT_IN_MINUTES);
}

@SuppressFBWarnings(value = "DCN_NULLPOINTER_EXCEPTION", justification = "TODO needs triage")
private void cleanDeployments(long successTimeoutInMinutes, long failTimeoutInMinutes) {
DeploymentInfo firstBackInQueue = null;
ConcurrentLinkedQueue<DeploymentInfo> deploymentsToClean
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>
Provisions agents on Azure Container Instances
</div>

0 comments on commit d2f5cd5

Please sign in to comment.