Skip to content

Commit 1140572

Browse files
abdulrahim458“Abdul
andauthored
FISH-8902 add jenkinsfile (#236)
* FISH-8902 add jenkinsfile --------- Co-authored-by: “Abdul <“vsabdulrahim@gmail.com”>
1 parent a9cd90b commit 1140572

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

0 commit comments

Comments
 (0)