From 58df41883484b7fba6767aabb3e55f18e76ecde3 Mon Sep 17 00:00:00 2001 From: Muhammad Yaseer Mawardi <154011144+iyasmawardii@users.noreply.github.com> Date: Wed, 27 Dec 2023 01:27:30 +0700 Subject: [PATCH] Change to Scripted Pipelines Jenkins Mengubah dari definitive to scripted Jenkins --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..3ecda7f3c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +node { + withDockerContainer(image: 'node:16-buster-slim', args: '-p 3000:3000') { + stage('Build') { + sh 'npm install' + } + stage('Test') { + sh './jenkins/scripts/test.sh' + } + } +} \ No newline at end of file