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/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 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 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