Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ee4j-build] EE4J CI/CD Jenkins question

You can specify jdk version with a pipeline with the "tools" section (see https://jenkins.io/blog/2017/02/07/declarative-maven-project/), e.g.: 

pipeline {
    agent any
    tools { 
        maven 'apache-maven-3.5.4' 
        jdk 'openjdk-jdk10-latest' 

    }
    stages {
        stage (
'Initialize'
) {
            steps {
                sh 
'''

                    echo "PATH = ${PATH}"
                    echo "M2_HOME = ${M2_HOME}"
                
''' 

            }
        }

        stage (
'Build'
) {
            steps {
                echo 
'This is a minimal pipeline.'

            }
        }
    }
}

maven tool can have the following values on the Eclipse CI infra:

apache-maven-3.5.4
apache-maven-3.3.9
apache-maven-3.2.5
apache-maven-latest (currently strictly identical to apache-maven-3.5.4, but change as new versions are released)

jdk tool can have the following values

openjdk-jdk11-latest
openjdk-jdk10-latest
openjdk-jdk-latest (== openjdk-jdk11-latest)
oracle-jdk11-latest
oracle-jdk10-latest
oracle-jdk9-latest
oracle-jdk8-latest
oracle-jdk7-latest
oracle-jdk6-latest
oracle-jdk5-latest
oracle-jdk-latest (== oracle-jdk11-latest)

HTH

Mikaël Barbero 
Team Lead - Release Engineering | Eclipse Foundation
📱 (+33) 642 028 039 | 🐦 @mikbarbero
Eclipse Foundation: The Platform for Open Innovation and Collaboration

Le 24 sept. 2018 à 17:56, Tomas Kraus <tomas.kraus@xxxxxxxxxx> a écrit :

Yes, "Freestyle project" is usually a good option until you are sure that something else works better for you.

Tomas


Dne 24/09/18 v 17:47 Jim Krueger napsal(a):
Must be "Freestyle project" since "Pipeline" does not have an obvious option to set the JDK version as shown in Tomas Kraus's example.   So I'll go that route.

On Mon, Sep 24, 2018 at 10:28 AM Jim Krueger <jckofbyron@xxxxxxxxx> wrote:
I'm starting to create my first build job in Jenkins.   Should this be a "Freestyle project" or a "Pipeline"?   Thanks


_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ee4j-build

_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ee4j-build

Attachment: signature.asc
Description: Message signed with OpenPGP


Back to the top