Merge branch 'master' of https://git.wmi.amu.edu.pl/s416178/Punktonerzy
This commit is contained in:
commit
3f69ff0ff3
|
@ -0,0 +1,45 @@
|
|||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
nodejs 'localNode'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Initialize') {
|
||||
steps {
|
||||
echo 'Initialize...'
|
||||
sh '''
|
||||
echo "PATH = ${PATH}"
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Install dependencies') {
|
||||
steps {
|
||||
echo 'Install dependencies...'
|
||||
sh '''
|
||||
cd FrontEnd
|
||||
npm install -g @angular/cli@1.7.4;
|
||||
npm install
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building...'
|
||||
sh '''
|
||||
ng build --prod
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
echo 'Testing...'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying...'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'Default'
|
||||
jdk 'java-11-openjdk-amd64'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Initialize') {
|
||||
steps {
|
||||
sh '''
|
||||
echo "PATH = ${PATH}"
|
||||
echo "M2_HOME = ${M2_HOME}"
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building...'
|
||||
sh '''
|
||||
cd BackEnd
|
||||
mvn clean install -Dmaven.test.skip=true
|
||||
sh '''
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
echo 'Testing...'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying...'
|
||||
}
|
||||
}
|
||||
stage('Front-end') {
|
||||
agent {
|
||||
docker { image 'node:10-alpine' }
|
||||
}
|
||||
steps {
|
||||
echo 'Building FrontEnd...'
|
||||
sh '''
|
||||
apt-get install git
|
||||
git clone https://git.wmi.amu.edu.pl/s416178/Punktonerzy.git
|
||||
cd Punktonerzy
|
||||
cd FrontEnd
|
||||
npm install
|
||||
ng build --prod
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue