From 244787160bd00007eb0ee9a0bc31852d929dc342 Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Sun, 21 Jan 2024 18:49:31 +0200 Subject: [PATCH 1/6] create_jenkins_config_for_pr_check --- toolbox/jenkins/jenkins_pr_check | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 toolbox/jenkins/jenkins_pr_check diff --git a/toolbox/jenkins/jenkins_pr_check b/toolbox/jenkins/jenkins_pr_check new file mode 100644 index 000000000..905a4afb8 --- /dev/null +++ b/toolbox/jenkins/jenkins_pr_check @@ -0,0 +1,32 @@ +pipeline { + agent { + label 'stage' + } + options { + // test config to not keep ALL builds of PR check + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) + timestamps() + + stages { + stage('Intall node modules') { + steps { + // need also take nvm into consideration + echo 'Installing modules...' + sh 'npm install' + } + } + } + stage('Run test:cover') { + steps { + echo 'Collect test coverage' + sh 'npm run test:cover' + } + } + stage('Run lint') { + steps { + echo 'Runt lint check' + sh 'npm run lint' + } + } + } +} From 7deb86dca58b0c6b0dfbb7f5a5e883de357606f9 Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Sun, 21 Jan 2024 19:45:34 +0200 Subject: [PATCH 2/6] test_comment --- toolbox/jenkins/jenkins_pr_check | 1 + 1 file changed, 1 insertion(+) diff --git a/toolbox/jenkins/jenkins_pr_check b/toolbox/jenkins/jenkins_pr_check index 905a4afb8..8b0bedff7 100644 --- a/toolbox/jenkins/jenkins_pr_check +++ b/toolbox/jenkins/jenkins_pr_check @@ -11,6 +11,7 @@ pipeline { stage('Intall node modules') { steps { // need also take nvm into consideration + // test comment echo 'Installing modules...' sh 'npm install' } From f8b4bf222f1e245e33436292254f0979b921ac6c Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Sun, 21 Jan 2024 19:48:23 +0200 Subject: [PATCH 3/6] fix_jenkins_file --- toolbox/jenkins/jenkins_pr_check | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/toolbox/jenkins/jenkins_pr_check b/toolbox/jenkins/jenkins_pr_check index 8b0bedff7..a14ad24b4 100644 --- a/toolbox/jenkins/jenkins_pr_check +++ b/toolbox/jenkins/jenkins_pr_check @@ -6,7 +6,7 @@ pipeline { // test config to not keep ALL builds of PR check buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) timestamps() - + } stages { stage('Intall node modules') { steps { @@ -16,7 +16,6 @@ pipeline { sh 'npm install' } } - } stage('Run test:cover') { steps { echo 'Collect test coverage' @@ -30,4 +29,4 @@ pipeline { } } } -} +} \ No newline at end of file From 698c989a02b85abf788a8f18fb2f0606f11ec97e Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Sun, 21 Jan 2024 19:59:32 +0200 Subject: [PATCH 4/6] adding_new_steps_for_pipeline --- toolbox/jenkins/jenkins_pr_check | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/toolbox/jenkins/jenkins_pr_check b/toolbox/jenkins/jenkins_pr_check index a14ad24b4..2ae604896 100644 --- a/toolbox/jenkins/jenkins_pr_check +++ b/toolbox/jenkins/jenkins_pr_check @@ -8,12 +8,16 @@ pipeline { timestamps() } stages { + stage('Set up node version') { + steps { + echo 'Set up node version' + sh 'nvm use 16' + } + } stage('Intall node modules') { steps { - // need also take nvm into consideration - // test comment echo 'Installing modules...' - sh 'npm install' + sh 'npm i' } } stage('Run test:cover') { From 43070d12fbe9a7698d6eb20edbb72e0267eea1dc Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Mon, 12 Feb 2024 02:09:23 +0200 Subject: [PATCH 5/6] comment_step_with_lint --- toolbox/jenkins/jenkins_pr_check | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolbox/jenkins/jenkins_pr_check b/toolbox/jenkins/jenkins_pr_check index 2ae604896..3dbfb0ee2 100644 --- a/toolbox/jenkins/jenkins_pr_check +++ b/toolbox/jenkins/jenkins_pr_check @@ -26,11 +26,13 @@ pipeline { sh 'npm run test:cover' } } + /* uncomment me when you will fix lint stage('Run lint') { steps { echo 'Runt lint check' sh 'npm run lint' } } + */ } } \ No newline at end of file From ec4813263401fec7241ddeba4038cc3930676bc1 Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Mon, 12 Feb 2024 02:10:46 +0200 Subject: [PATCH 6/6] insert_empty_line --- toolbox/jenkins/jenkins_pr_check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/jenkins/jenkins_pr_check b/toolbox/jenkins/jenkins_pr_check index 3dbfb0ee2..7edfa846d 100644 --- a/toolbox/jenkins/jenkins_pr_check +++ b/toolbox/jenkins/jenkins_pr_check @@ -35,4 +35,4 @@ pipeline { } */ } -} \ No newline at end of file +}