File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! groovy
2+
3+ pipeline {
4+
5+ agent {
6+ label ' general-purpose'
7+ }
8+ tools {
9+ jdk " zulu-11"
10+ maven " maven-3.6.3"
11+
12+ }
13+ environment {
14+ JAVA_HOME = tool(" zulu-11" )
15+ MAVEN_OPTS = ' -Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts'
16+ payaraBuildNumber = " ${ BUILD_NUMBER} "
17+ PATH = " $PATH :/usr/local/bin" // Ensure the yarn binary is in PATH if not globally available
18+
19+ }
20+ stages {
21+
22+ stage(' Install Dependencies' ) {
23+ steps {
24+ // Install project dependencies
25+ sh ' curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -'
26+ sh ' sudo apt-get install -y nodejs'
27+ sh ' sudo npm install -g yarn'
28+
29+ }
30+ }
31+
32+ stage(' Build' ) {
33+ steps {
34+ // Build the project using yarn
35+ sh ' yarn install'
36+ sh ' yarn run tslint'
37+ sh ' yarn run compile' }
38+ }
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments