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.
The_Tip_Top/Jenkinsfile

60 lines
1.2 KiB

pipeline {
agent any
stages {
stage('Env reinit') {
parallel {
stage('Env reinit') {
steps {
sh '''echo "
NEXTAUTH_URL=\'https://devops.dsp-archiwebo21-ad-ec-cb-mt.fr\'
DATABASE_URL="postgres://postgres:dandanalaa@212.227.206.140:5454/thetiptop"
GITHUB_ID=YOUR_GITHUB_CLIENT_ID
GITHUB_SECRET=YOUR_GITHUB_CLIENT_SECRET
GOOGLE_CLIENT_ID=965228443747-049kq59pm43bd23aplfu9ja2333dpo5s.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
EMAIL_SERVER_USER=contact@dsp-archiwebo21-ad-ec-cb-mt.fr
EMAIL_SERVER_PASSWORD=Acem@2022a
EMAIL_SERVER_HOST=mail50.lwspanel.com
EMAIL_SERVER_PORT=587
EMAIL_FROM=contact@dsp-archiwebo21-ad-ec-cb-mt.fr
SECRET=thetiptop123
API_KEY=1234
" > ./.env
cat ./.env'''
}
}
stage('ssh') {
steps {
sh 'echo "salut"'
}
}
}
}
stage('Build') {
steps {
sh '''npm install
npm run build
npm start & sleep 1'''
}
}
stage('Test') {
steps {
sh 'npm test & sleep 1'
}
}
}
tools {
nodejs 'Node 16.18'
}
}