Giter Site home page Giter Site logo

Comments (6)

ktomk avatar ktomk commented on June 3, 2024

Can you give an example when pipelines has .git in BITBUCKET_REPO_SLUG? Or please clarify what the report is about. @Timple

from pipelines.

Timple avatar Timple commented on June 3, 2024
image: ubuntu
pipelines:
  default:
    - step:
        script:
          - echo "$BITBUCKET_REPO_SLUG"

Typically a repository url looks like this:
https://bitbucket.org/company/somereponame

bitbucket pipelines:
BITBUCKET_REPO_SLUG=somereponame

pipelines.phar:
BITBUCKET_REPO_SLUG=somereponame.git

from pipelines.

ktomk avatar ktomk commented on June 3, 2024

@Timple Could it be that you project is inside a folder named somereponame.git? Pipelines should take the basename of the project folder (which is also the project name for it which then goes into the slug).

from pipelines.

Timple avatar Timple commented on June 3, 2024

Aha, that might be it! They are not in a folder with the .git extension but they are symlink. And the symlinks (with extension) point to a folder with extension.

So this might be something we need to fix on our side.

from pipelines.

ktomk avatar ktomk commented on June 3, 2024

Ah, that explains it. If you want to have the same behaviour as on Bitbucket, you can add an entry to the .env.dist file specifying it. pipelines then takes that automatically into the runner-environment of the pipeline:

.env.dist

BITBUCKET_REPO_SLUG=somereponame

See as well Pipelines Environment Variable Usage.

from pipelines.

Timple avatar Timple commented on June 3, 2024

Awesome, thanks for the pointer

from pipelines.

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.