Skip to content

Commit ea518cf

Browse files
rgrunberdatho7561
authored andcommitted
Update Jenkinsfile to use Java 17.
- Use batch mode for 'mvn' command Signed-off-by: Roland Grunberg <[email protected]>
1 parent f57b552 commit ea518cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ node('rhel8'){
3333
}
3434

3535
stage('Build') {
36-
env.JAVA_HOME="${tool 'openjdk-11'}"
36+
env.JAVA_HOME="${tool 'openjdk-17'}"
3737
env.PATH="${env.JAVA_HOME}/bin:${env.PATH}"
3838
dir ('vscode-quarkus') {
3939
sh "npm install --ignore-scripts"

gulpfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const quteExtensionDir = '../quarkus-ls/qute.jdt';
2828
const quteExtension = 'com.redhat.qute.jdt';
2929

3030
gulp.task('buildServer', (done) => {
31-
cp.execSync(mvnw() + ' clean verify -DskipTests', { cwd: quarkusServerExtDir , stdio: 'inherit' });
31+
cp.execSync(mvnw() + ' clean verify -B -DskipTests', { cwd: quarkusServerExtDir , stdio: 'inherit' });
3232
gulp.src(quarkusServerExtDir + '/target/' + quarkusServerExt + '-!(*sources).jar')
3333
.pipe(rename(quarkusServerExt + '.jar'))
3434
.pipe(gulp.dest('./server'));
@@ -40,22 +40,22 @@ gulp.task('buildServer', (done) => {
4040
});
4141

4242
gulp.task('buildExtension', (done) => {
43-
cp.execSync(mvnw() + ' -pl "' + quarkusExtension + '" clean verify -DskipTests', { cwd: quarkusExtensionDir, stdio: 'inherit' });
43+
cp.execSync(mvnw() + ' -pl "' + quarkusExtension + '" clean verify -B -DskipTests', { cwd: quarkusExtensionDir, stdio: 'inherit' });
4444
gulp.src(quarkusExtensionDir + '/' + quarkusExtension + '/target/' + quarkusExtension + '-!(*sources).jar')
4545
.pipe(rename(quarkusExtension + '.jar'))
4646
.pipe(gulp.dest('./jars'));
4747
done();
4848
});
4949

5050
gulp.task('buildQuteServer', (done) => {
51-
cp.execSync(mvnw() + ' clean verify -DskipTests', { cwd: quteServerDir , stdio: 'inherit' });
51+
cp.execSync(mvnw() + ' clean verify -B -DskipTests', { cwd: quteServerDir , stdio: 'inherit' });
5252
gulp.src(quteServerDir + '/target/' + quteServer)
5353
.pipe(gulp.dest('./server'));
5454
done();
5555
});
5656

5757
gulp.task('buildQuteExtension', (done) => {
58-
cp.execSync(mvnw() + ' -pl "' + quteExtension + '" clean verify -DskipTests', { cwd: quteExtensionDir, stdio: 'inherit' });
58+
cp.execSync(mvnw() + ' -pl "' + quteExtension + '" clean verify -B -DskipTests', { cwd: quteExtensionDir, stdio: 'inherit' });
5959
gulp.src(quteExtensionDir + '/' + quteExtension + '/target/' + quteExtension + '-!(*sources).jar')
6060
.pipe(rename(quteExtension + '.jar'))
6161
.pipe(gulp.dest('./jars'));

0 commit comments

Comments
 (0)