Skip to content

Commit e9b9832

Browse files
authored
Merge pull request #107 from iExecBlockchainComputing/feature/jenkins-library-2.7.4
Use `jenkins-library` 2.7.4
2 parents d0c3f74 + 1c6e977 commit e9b9832

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
- Add and use a non-root user in the dockerfile. (#106)
1010

11+
### Dependency Upgrades
12+
13+
- Upgrade to `jenkins-library` 2.7.4. (#107)
14+
1115
## [[8.2.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.2.0) 2023-09-28
1216

1317
### New Features

Jenkinsfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
@Library('[email protected].3') _
1+
@Library('[email protected].4') _
22
buildJavaProject(
3-
buildInfo: getBuildInfo(),
4-
integrationTestsEnvVars: [],
53
shouldPublishJars: true,
6-
shouldPublishDockerImages: true,
7-
dockerfileDir: '.')
4+
shouldPublishDockerImages: true)

build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ allprojects {
3838
}
3939
java {
4040
toolchain {
41-
languageVersion.set(JavaLanguageVersion.of(11))
41+
languageVersion.set(JavaLanguageVersion.of(17))
4242
}
43+
sourceCompatibility = "11"
44+
targetCompatibility = "11"
4345
}
4446
}
4547

@@ -130,14 +132,13 @@ publishing {
130132
}
131133
}
132134

133-
ext.jarPathForOCI = relativePath(tasks.bootJar.outputs.files.singleFile)
135+
ext.jarPathForOCI = relativePath(tasks.bootJar.outputs.files.singleFile)
134136
ext.gitShortCommit = 'git rev-parse --short=8 HEAD'.execute().text.trim()
135-
ext.ociImageName = 'local/' + ['bash', '-c', 'basename $(git config --get remote.origin.url) .git'].execute().text.trim()
137+
ext.ociImageName = 'local/' + ['bash', '-c', 'basename $(git config --get remote.origin.url) .git'].execute().text.trim()
136138

137139
tasks.register('buildImage', Exec) {
138-
group 'Build'
140+
group 'Build'
139141
description 'Builds an OCI image from a Dockerfile.'
140-
dependsOn tasks.bootJar
141-
commandLine ("sh", "-c", "docker build --build-arg jar=$jarPathForOCI -t $ociImageName:$gitShortCommit ."
142-
+ " && docker tag $ociImageName:$gitShortCommit $ociImageName:dev")
142+
dependsOn tasks.bootJar
143+
commandLine 'docker', 'build', '--build-arg', 'jar=' + jarPathForOCI, '-t', ociImageName + ':dev', '.'
143144
}

iexec-result-proxy-library/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ dependencies {
1313
}
1414

1515
java {
16+
sourceCompatibility = "11"
17+
targetCompatibility = "11"
1618
withJavadocJar()
1719
withSourcesJar()
1820
}

0 commit comments

Comments
 (0)