Git Product home page Git Product logo

Comments (7)

DavidTanner avatar DavidTanner commented on July 21, 2024

Can you send me to relevant portion of the job config? I am using the plugin for testing and have not found this to be the case

from ghprb-plugin.

podarok avatar podarok commented on July 21, 2024

@DavidTanner what kind of job config do you need?
1.24.4 works with that confix, all recent versions nope

Anyway, here is a config.xml for that job

<?xml version='1.0' encoding='UTF-8'?>
<project>
  <actions/>
  <description>This job will scan new PR in SRS github repo and executes Ci stuff</description>
  <logRotator class="hudson.tasks.LogRotator">
    <daysToKeep>5</daysToKeep>
    <numToKeep>10</numToKeep>
    <artifactDaysToKeep>-1</artifactDaysToKeep>
    <artifactNumToKeep>-1</artifactNumToKeep>
  </logRotator>
  <keepDependencies>false</keepDependencies>
  <properties>
    <com.coravy.hudson.plugins.github.GithubProjectProperty plugin="[email protected]">
      <projectUrl>https://github.com/propeoplemd/mvtp/</projectUrl>
    </com.coravy.hudson.plugins.github.GithubProjectProperty>
  </properties>
  <scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <name>origin</name>
        <refspec>+refs/pull/*:refs/remotes/origin/pr/*</refspec>
        <url>[email protected]:propeoplemd/mvtp.git</url>
        <credentialsId>c55a496e-7717-4f51-88d5-1a50b478ba55</credentialsId>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
        <name>${sha1}</name>
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions>
      <hudson.plugins.git.extensions.impl.CloneOption>
        <shallow>true</shallow>
        <reference></reference>
        <timeout>5</timeout>
      </hudson.plugins.git.extensions.impl.CloneOption>
      <hudson.plugins.git.extensions.impl.SubmoduleOption>
        <disableSubmodules>false</disableSubmodules>
        <recursiveSubmodules>true</recursiveSubmodules>
        <trackingSubmodules>false</trackingSubmodules>
        <timeout>5</timeout>
      </hudson.plugins.git.extensions.impl.SubmoduleOption>
      <hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
        <relativeTargetDir>new_pull_request</relativeTargetDir>
      </hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
    </extensions>
  </scm>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers>
    <org.jenkinsci.plugins.ghprb.GhprbTrigger plugin="[email protected]">
      <spec>H/3 * * * *</spec>
      <configVersion>1</configVersion>
      <adminlist>ppbot
                podarok
                ygerasimov
            </adminlist>
      <allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
      <orgslist>propeoplemd</orgslist>
      <cron>H/3 * * * *</cron>
      <triggerPhrase></triggerPhrase>
      <onlyTriggerPhrase>false</onlyTriggerPhrase>
      <useGitHubHooks>false</useGitHubHooks>
      <permitAll>true</permitAll>
      <whitelist></whitelist>
      <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
      <displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
      <whiteListTargetBranches>
        <org.jenkinsci.plugins.ghprb.GhprbBranch>
          <branch></branch>
        </org.jenkinsci.plugins.ghprb.GhprbBranch>
      </whiteListTargetBranches>
      <project>MVTP_PR_BUILDER</project>
      <__project class="project" reference="../../.."/>
      <gitHubApiAuth>
        <serverAPIUrl>https://api.github.com</serverAPIUrl>
        <credentialsId>c55a496e-7717-4f51-88d5-1a50b478ba55</credentialsId>
        <id>5e612ad3-a68e-4ffa-b5bb-cfc19a3d837c</id>
        <description>Pre credentials Token</description>
        <secret>*** screaned *** </secret>
      </gitHubApiAuth>
      <extensions>
        <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
          <commitStatusContext></commitStatusContext>
          <triggeredStatus></triggeredStatus>
          <startedStatus></startedStatus>
          <statusUrl></statusUrl>
        </org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
        <org.jenkinsci.plugins.ghprb.extensions.comments.GhprbCommentFile>
          <commentFilePath>${WORKSPACE}/commentinfo.md</commentFilePath>
        </org.jenkinsci.plugins.ghprb.extensions.comments.GhprbCommentFile>
      </extensions>
    </org.jenkinsci.plugins.ghprb.GhprbTrigger>
  </triggers>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
      <command>export PYTHONUNBUFFERED=1
echo &quot;===============&quot; &gt; ${WORKSPACE}/commentinfo.md
cd new_pull_request
sudo rsync -avz docroot/ /var/www/build${BUILD_NUMBER}
cd /var/www/build${BUILD_NUMBER}
sudo chown -R www-data:jenkins *
sudo chmod -R 774 *
sudo chmod -x hosts
ansible-playbook sniffers.yml --extra-vars &quot;workspace_root=${WORKSPACE} webroot=http://** screaned ***/build${BUILD_NUMBER} site_url=http://** screaned ***/build${BUILD_NUMBER}&quot;
ansible-playbook reinstall.yml --extra-vars &quot;php_env_vars=&apos;APP_ENV=dev&apos; mysql_user=** screaned *** mysql_pass=** screaned *** mysql_db=drupal${BUILD_NUMBER} php_env_vars=&apos;APP_ENV=dev&apos; drupal_folder=/var/www/build${BUILD_NUMBER} base_url=http://** screaned ***/build${BUILD_NUMBER} site_url=http://** screaned ***/build${BUILD_NUMBER}&quot;
#ansible-playbook tests.yml --extra-vars &quot;workspace_root=${WORKSPACE} behat_base_url=http://** screaned ***/build${BUILD_NUMBER} update_dependencies=&apos;yes&apos; resources_path=${WORKSPACE}/new_pull_request//tests/behat/resources
#behat_drupal_root=/var/www/build${BUILD_NUMBER}
#behat_root=${WORKSPACE}/new_pull_request/tests/behat&quot;
sudo chown -R www-data:jenkins ../build${BUILD_NUMBER}
            </command>
    </hudson.tasks.Shell>
  </builders>
  <publishers>
    <com.cloudbees.jenkins.GitHubCommitNotifier plugin="[email protected]">
      <resultOnFailure>FAILURE</resultOnFailure>
    </com.cloudbees.jenkins.GitHubCommitNotifier>
    <jenkins.plugins.hipchat.HipChatNotifier plugin="[email protected]">
      <token>CHANGE_ME</token>
      <room>CHANGE_ME</room>
      <startNotification>true</startNotification>
      <notifySuccess>true</notifySuccess>
      <notifyAborted>true</notifyAborted>
      <notifyNotBuilt>false</notifyNotBuilt>
      <notifyUnstable>false</notifyUnstable>
      <notifyFailure>true</notifyFailure>
      <notifyBackToNormal>true</notifyBackToNormal>
      <startJobMessage>&gt;&gt;&gt; &lt;strong&gt;$ghprbPullTitle&lt;/strong&gt; &lt;br /&gt; $JOB_NAME #$BUILD_NUMBER $STATUS ($CHANGES_OR_CAUSE) &lt;br /&gt; Started by $ghprbTriggerAuthor ($ghprbActualCommitAuthorEmail) &lt;br /&gt;&lt;a href=&quot;$URL/console&quot;&gt;Open Builder console within Jenkins&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;CHANGE_ME_TO_PROJECT_HTTPS_URL/pull/$ghprbPullId&quot;&gt;Open PR at Github&lt;/a&gt; &lt;br /&gt;</startJobMessage>
      <completeJobMessage>&gt;&gt;&gt; &lt;strong&gt;$ghprbPullTitle&lt;/strong&gt; &lt;br /&gt; $JOB_NAME #$BUILD_NUMBER $STATUS after $DURATION &lt;br /&gt; by $ghprbTriggerAuthor ($ghprbActualCommitAuthorEmail) &lt;br /&gt;&lt;a href=&quot;$URL/console&quot;&gt;Open Builder console within Jenkins&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;CHANGE_ME_TO_PROJECT_HTTPS_URL/pull/$ghprbPullId&quot;&gt;Open PR at Github&lt;/a&gt;</completeJobMessage>
    </jenkins.plugins.hipchat.HipChatNotifier>
  </publishers>
  <buildWrappers>
    <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="[email protected]">
      <colorMapName>xterm</colorMapName>
    </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
  </buildWrappers>
</project>

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on July 21, 2024

What does the global config look like?

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on July 21, 2024

I just verified it locally. It works when using webHooks, so I will debug why it doesn't work with the trigger.

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on July 21, 2024

I found the bug, now I need to do some rework.

from ghprb-plugin.

sheldonhall avatar sheldonhall commented on July 21, 2024

Has this regressed I get this error:

Pull request #1 was updated on repo i___e/p___jk but there aren't any new comments nor commits; that may mean that commit status was updated.

I'm using version 1.32.3 of the plugin.

from ghprb-plugin.

jujugrrr avatar jujugrrr commented on July 21, 2024

Same here with 1.32.6 and Jenkins 1.658. What is the best way to investigate?

INFO: Pull request #33 was updated on repo xxx but there aren't any new comments nor commits; that may mean that commit status was updated.

from ghprb-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.