forked from ballerina-platform/ballerina-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
16 lines (16 loc) · 830 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
node('COMPONENT_ECS') {
stage('Run'){
withCredentials( [usernamePassword(credentialsId: "${env.NEXUS_CREDENTIALS_ID}", usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD')]) {
withEnv(["JAVA_HOME=${tool env.JDK}", "NEXUS_USERNAME=${USERNAME}", "NEXUS_PASSWORD=${PASSWORD}" ]) {
sh """
git clone https://github.com/ballerina-platform/ballerina-lang
cd ballerina-lang/
#Temporary javadoc creation and spot bug check will be skipped
./gradlew build --console=plain --stacktrace -scan -x createJavadoc -x spotbugsMain -x openapi-ballerina:ballerina-to-openapi-generator:test -x test -x check
./gradlew publish
"""
}
}
}
}