Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto notify tuleap about current build status #195

Merged
merged 3 commits into from
Apr 12, 2021

Conversation

gorkat
Copy link
Contributor

@gorkat gorkat commented Mar 26, 2021

part of: story #18320 native support of pull requests in tuleap branch source jenkins plugin

How to test

  1. Go to a repository of your choice on your Tuleap instance
  2. make a pullrequest containing a Jenkinsfile like this:
pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                echo 'Building..'
                sh "sleep 10s"
            }
        }
        stage('Test') {
            steps {
                echo 'Testing..'
            }
        }
        stage('Deploy') {
            steps {
                echo 'Deploying....'
            }
        }
    }
}
  1. Open the pullrequest UI -> CI status: Unknown

  2. Go to your repository on Jenkins and click the [Scan multibranch
    pipeline now]

  3. Once the build is started, refresh the PR UI. You should see CI
    status: Pending

  4. Once the build is complete, refresh the UI once again -> CI Status:
    success

gorkat added 2 commits March 26, 2021 10:40
part of: [story #18320](https://tuleap.net/plugins/tracker/?aid=18320) native support of pull requests in tuleap branch source jenkins plugin

1. First, checkout the last version of tuleap-api-plugin
2. run `mvn install` in this repository
3. Open your IDE, open the tuleap-git-branch-source-plugin
4. Edit pom.xml and replace the version of tuleap-api-plugin with the
  snapshot version built at step 2
5. Refresh the dependencies
6. Now run the plugin

1. Go to a repository of your choice on your Tuleap instance
2. make a pullrequest containing a Jenkinsfile like this:

```
pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                echo 'Building..'
                sh "sleep 10s"
            }
        }
        stage('Test') {
            steps {
                echo 'Testing..'
            }
        }
        stage('Deploy') {
            steps {
                echo 'Deploying....'
            }
        }
    }
}
```
3. Open the pullrequest UI -> CI status: Unknown

4. Go to your repository on Jenkins and click the [Scan multibranch
   pipeline now]

5. Once the build is started, refresh the PR UI. You should see CI
   status: Pending

6. Once the build is complete, refresh the UI once again -> CI Status:
   success
Copy link
Collaborator

@Erwyn Erwyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will need to put tuleap-api to version 2.2.0 in the pom.xml and push it here. I sadly can't do it for you as it is on your forked repository.

@gorkat gorkat requested a review from Erwyn April 6, 2021 08:34
@Erwyn Erwyn merged commit be322bd into jenkinsci:master Apr 12, 2021
@gorkat gorkat deleted the auto-notify branch April 13, 2021 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants