From 7292e07d3a80024c21ee226cc8290009b885e903 Mon Sep 17 00:00:00 2001 From: Ping-yee <611077101@mail.nknu.edu.tw> Date: Thu, 29 Jun 2023 18:37:25 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2815db6..46d20e2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Codeigniter4 exmaple project -The simple CodeIgniter4 code of TCSE 2023 workshop. +# Blogger +The simple CodeIgniter4 project of TCSE 2023 workshop. ## How to Run From 85a53fe3e8aa58b330df998e95b7d4172ce8d5ed Mon Sep 17 00:00:00 2001 From: 611177107 <611177107@mail.nknu.edu,tw> Date: Sat, 1 Jul 2023 11:37:46 +0800 Subject: [PATCH 2/3] 2023.07.01 add 611177107.txt file --- fork workshop/611177107.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 fork workshop/611177107.txt diff --git a/fork workshop/611177107.txt b/fork workshop/611177107.txt new file mode 100644 index 0000000..1bbb894 --- /dev/null +++ b/fork workshop/611177107.txt @@ -0,0 +1 @@ +611177107 Chieh-Fan \ No newline at end of file From 106893ca4f5a642c6e9d2184542065be1bd00d04 Mon Sep 17 00:00:00 2001 From: 611177107 <611177107@mail.nknu.edu,tw> Date: Sat, 1 Jul 2023 12:45:36 +0800 Subject: [PATCH 3/3] merge to main --- .github/workflows/main.yml | 13 +++++++++++++ jenkinsfile | 27 +++++++++++++++++++++++++++ sonar-project.properties | 1 + 3 files changed, 41 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 jenkinsfile create mode 100644 sonar-project.properties diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e58cb8e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,13 @@ +on: [push] +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: trigger single Job + uses: appleboy/jenkins-action@master + with: + url: "https://jenkins.sdpmlab.org/" + user: "611177107" + token: ${{ secrets.TOKEN }} + job: "tcse2023-611177107" \ No newline at end of file diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..298bc81 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,27 @@ +pipeline{ + agent{ + node{ + label 'docker' + } + } + stages{ + stage('verify tools)') { + step{ + sh ''' + docker version + docker-compose version + ''' + } + } + + stage('sonarqube-scanning'){ + steps{ + script{ + withSonarQubeEnv('SDPM_Sonarqube') + def scannerHome = tool 'SonarQube-Scanner' + sh "${scannerHome}/bin/sonar-scanner" + } + } + } + } +} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..944a3a4 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey = blogger \ No newline at end of file