forked from ballerina-platform/ballerina-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
20 lines (20 loc) · 1.01 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/tool-plugins/vscode
#Temporary fix to resolve root user issue in npm
npm install --unsafe-perm
npm run vscode:prepublish
cd ../..
#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
"""
}
}
}
}