Skip to content

Commit

Permalink
Merge pull request #1115 from voxpupuli/java17
Browse files Browse the repository at this point in the history
Install Java 17 JDK in acceptance tests
  • Loading branch information
evgeni authored Jan 6, 2025
2 parents 5fcacf5 + d2d6c0e commit 33c557d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
4 changes: 4 additions & 0 deletions spec/acceptance/hieradata/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
jenkins::service_override:
StartLimitIntervalSec: '0'
StartLimitBurst: '0'
3 changes: 3 additions & 0 deletions spec/acceptance/hieradata/family/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
# Jenkins 2.479.1 requires Java 17 or newer
java::package: openjdk-17-jdk
4 changes: 2 additions & 2 deletions spec/acceptance/hieradata/family/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
# Jenkins 2.361.1 requires Java 11 or newer
java::package: java-11-openjdk-devel
# Jenkins 2.479.1 requires Java 17 or newer
java::package: java-17-openjdk-devel
27 changes: 9 additions & 18 deletions spec/acceptance/xtypes/jenkins_credentials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class {'jenkins':
'apache-httpcomponents-client-4-api',
'caffeine-api',
'command-launcher',
'eddsa-api',
'gson-api',
'jaxb',
'jdk-tool',
Expand Down Expand Up @@ -89,6 +90,7 @@ class {'jenkins':
include jenkins::cli::config
jenkins::plugin { [
'eddsa-api',
'gson-api',
'ssh-credentials',
'variant',
Expand Down Expand Up @@ -194,22 +196,13 @@ class {'jenkins':
jenkins::plugin { [
'apache-httpcomponents-client-4-api',
'aws-credentials',
'aws-java-sdk',
'aws-java-sdk-cloudformation',
'aws-java-sdk-codebuild',
'aws-java-sdk-ec2',
'aws-java-sdk-ecr',
'aws-java-sdk-ecs',
'aws-java-sdk-efs',
'aws-java-sdk-elasticbeanstalk',
'aws-java-sdk-iam',
'aws-java-sdk-logs',
'aws-java-sdk-minimal',
'aws-java-sdk-sns',
'aws-java-sdk-sqs',
'aws-java-sdk-ssm',
'aws-java-sdk2-core',
'aws-java-sdk2-ec2',
'caffeine-api',
'credentials-binding',
'eddsa-api',
'gson-api',
'jackson2-api',
'jaxb',
Expand Down Expand Up @@ -264,6 +257,7 @@ class {'jenkins':
'credentials-binding',
'display-url-api',
'echarts-api',
'eddsa-api',
'font-awesome-api',
'git',
'git-client',
Expand Down Expand Up @@ -295,13 +289,11 @@ class {'jenkins':
'trilead-api',
'variant',
'workflow-api',
'workflow-job',
'workflow-scm-step',
'workflow-step-api',
'workflow-support',
]: }
jenkins::plugin { 'workflow-job':
version => '1400.v7fd111b_ec82f'
}
jenkins_credentials { '7e86e9fb-a8af-480f-b596-7191dc02bf38':
ensure => 'present',
Expand Down Expand Up @@ -343,6 +335,7 @@ class {'jenkins':
'display-url-api',
'durable-task',
'echarts-api',
'eddsa-api',
'font-awesome-api',
'gson-api',
'ionicons-api',
Expand All @@ -368,13 +361,11 @@ class {'jenkins':
'workflow-basic-steps',
'workflow-cps',
'workflow-durable-task-step',
'workflow-job',
'workflow-scm-step',
'workflow-step-api',
'workflow-support',
]: }
jenkins::plugin { 'workflow-job':
version => '1400.v7fd111b_ec82f'
}
jenkins_credentials { '562fa23d-a441-4cab-997f-58df6e245813':
ensure => 'present',
Expand Down

0 comments on commit 33c557d

Please sign in to comment.