From 5440b0525ba2e3d70393d916d9054cf4361c174d Mon Sep 17 00:00:00 2001 From: dandanalaa Date: Sat, 10 Dec 2022 18:07:47 +0000 Subject: [PATCH] supp jenkis --- Jenkinsfile | 67 ----------------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 182e474..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,67 +0,0 @@ -// 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 -// npm -v -// npm install -// npm run build -// npm run start - -// rm -rf $WORKSPACE/the_tip_top -// git clone git@172.17.0.3:cedric/The_Tip_Top.git $WORKSPACE/the_tip_top - -// cd $WORKSPACE/the_tip_top -// git checkout master - -// yarn install -// yarn build - -// mkdir the_tip_top - -// mv public/ the_tip_top/ - -// NEXT_BUILD_ID=$(cat build/BUILD_ID) -// LAST_COMMIT=$(git rev-parse HEAD) - -// # That's just for debugging purposes -// echo "{git: ${LAST_COMMIT}, ci: ${BUILD_ID}, next: ${NEXT_BUILD_ID}}" > the_tip_top/CI - -// # trim package.json and leave only things that you need in production -// cat package.json | jq '. | {name: .name, private: true, version: .version, scripts: {start: .scripts.start}, dependencies: .dependencies}' > the_tip_top/package.json - -// # I'm using next-compose-plugins, so here we need to dump config. If you have next.config.js as an object then just copy config file -// NEXT_CONFIG=$(node -e 'var configFile = require("./next.config.js"); var config = configFile([], {}); delete config.webpack; console.log(JSON.stringify(config));') -// echo "module.exports = ${NEXT_CONFIG}" > the_tip_top/next.config.js # result => {distDir: "build", poweredByHeader: false} - -// mv build the_tip_top/ - -// cd the_tip_top - -// yarn install - -// cd $WORKSPACE/the_tip_top - -// # dump folder tree structure just for Jenkins console output logs -// tree -h -L 1 build/ - -// tar czf $WORKSPACE/the_tip_top.tar.gz the_tip_top -// cd $WORKSPACE - -// rm -rf $WORKSPACE/the_tip_top