You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

47 lines
723 B

def gv
pipeline {
agent any
stages{
stage("Init"){
steps {
script{
gv = load "script.groovy"
nodejs('node-16'){
sh 'npm install'
}
sh 'ls'
}
echo 'Init'
}
}
stage("Build"){
steps {
echo 'Build'
nodejs('node-16'){
sh 'npm run build'
}
}
}
stage("Test"){
steps {
script{
gv.testApp()
nodejs('node-16'){
sh 'npm run test'
}
}
echo 'Test'
}
}
stage("Deploy"){
steps {
echo 'Deploy'
script{
sh 'gcloud --help'
}
}
}
}
}