Skip to content

Commit

Permalink
Merge branch 'master' into updatecli_master_826cf2c93e438e11e9a7fc047…
Browse files Browse the repository at this point in the history
…9c71d12103331eed6633a5604ad389619ebb800
  • Loading branch information
timja authored Nov 2, 2024
2 parents 8238dd1 + a2219d9 commit d6e636c
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 209 deletions.
26 changes: 25 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:recommended",
":semanticCommitsDisabled",
"schedule:earlyMondays"
],
"automerge": true,
"labels": [
"dependencies"
],
"packageRules": [
{
"allowedVersions": "/^[0-9]+\\.[0-9]+\\.[0-9]+$/",
"registryUrls": [
"https://repo.jenkins-ci.org/public/"
],
"matchPackageNames": [
"/org.jenkins-ci.main:jenkins-war/"
]
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"integrations/pom.xml"
],
"matchStrings": [
"<jenkins.version>(?<currentValue>.*?)</jenkins.version>"
],
"depNameTemplate": "org.jenkins-ci.main:jenkins-war",
"datasourceTemplate": "maven"
}
],
"rebaseWhen": "conflicted"
}
40 changes: 0 additions & 40 deletions .github/workflows/maven.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/updatecli-action.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Windows controller tests crash with unexpected errors
buildPlugin(useContainerAgent: true, forkCount: '0.5C', timeout: 360, configurations: [
[platform: 'linux', jdk: 21],
// Windows fails on >11 https://github.com/jenkinsci/configuration-as-code-plugin/pull/2392#issuecomment-1826296308
[platform: 'windows', jdk: 11],
[platform: 'windows', jdk: 17],
])
2 changes: 1 addition & 1 deletion integrations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.452.x</artifactId>
<artifactId>bom-2.479.x</artifactId>
<version>${plugin-bom.version}</version>
<type>pom</type>
<scope>import</scope>
Expand Down
2 changes: 1 addition & 1 deletion plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.440.x</artifactId>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>${plugin-bom.version}</version>
<type>pom</type>
<scope>import</scope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import hudson.model.UnprotectedRootAction;
import hudson.security.ACL;
import hudson.security.ACLContext;
import jakarta.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.StaplerRequest2;
import org.kohsuke.stapler.StaplerResponse2;
import org.kohsuke.stapler.interceptor.RequirePOST;

@Extension
Expand Down Expand Up @@ -42,7 +42,7 @@ public String getUrlName() {
}

@RequirePOST
public void doIndex(StaplerRequest request, StaplerResponse response) throws IOException {
public void doIndex(StaplerRequest2 request, StaplerResponse2 response) throws IOException {
String token = getReloadToken();

if (token == null || token.isEmpty()) {
Expand Down
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.88</version>
<version>5.2</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -39,10 +39,11 @@
<properties>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/configuration-as-code-plugin</gitHubRepo>
<jenkins.version>2.440.3</jenkins.version>
<jenkins.baseline>2.479</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
<tagNameFormat>configuration-as-code-@{project.version}</tagNameFormat>
<useBeta>true</useBeta>
<plugin-bom.version>3435.v238d66a_043fb_</plugin-bom.version>
<plugin-bom.version>3613.v584fca_12cf5c</plugin-bom.version>
<spotless.check.skip>false</spotless.check.skip>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion test-harness/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.440.x</artifactId>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>${plugin-bom.version}</version>
<type>pom</type>
<scope>import</scope>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package io.jenkins.plugins.casc;

import jakarta.servlet.AsyncContext;
import jakarta.servlet.DispatcherType;
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletInputStream;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;
import jakarta.servlet.http.HttpUpgradeHandler;
import jakarta.servlet.http.Part;
import java.io.BufferedReader;
import java.security.Principal;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import javax.servlet.AsyncContext;
import javax.servlet.DispatcherType;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpUpgradeHandler;
import javax.servlet.http.Part;

public class MockHttpServletRequest implements HttpServletRequest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.jenkins.plugins.casc;

import jakarta.servlet.ServletOutputStream;
import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.Locale;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;

public class MockHttpServletResponse implements HttpServletResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import io.jenkins.plugins.casc.misc.EnvVarsRule;
import io.jenkins.plugins.casc.misc.Envs;
import io.jenkins.plugins.casc.misc.JenkinsConfiguredWithCodeRule;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Collections;
import java.util.Date;
Expand All @@ -16,7 +17,6 @@
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import javax.servlet.http.HttpServletResponse;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
Expand Down
7 changes: 0 additions & 7 deletions updatecli/current-jenkins.ps1

This file was deleted.

32 changes: 0 additions & 32 deletions updatecli/update-jenkins.ps1

This file was deleted.

56 changes: 0 additions & 56 deletions updatecli/updatecli.d/update-integrations-jenkins.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions updatecli/values.yaml

This file was deleted.

0 comments on commit d6e636c

Please sign in to comment.