Skip to content

Shell ++ Failing with msg not found echo: null #103

@aleksandro83

Description

@aleksandro83

I'm trying to execute a script sh in my repository root folder but I am getting the message error bellow:

2018-08-31T20:11:21.8296793Z ##[section]Starting: Shell Script
2018-08-31T20:11:21.8302330Z ==============================================================================
2018-08-31T20:11:21.8302515Z Task : Shell++
2018-08-31T20:11:21.8302637Z Description : Execute bash script
2018-08-31T20:11:21.8302771Z Version : 0.3.1
2018-08-31T20:11:21.8302889Z Author : ms-devlabs
2018-08-31T20:11:21.8303035Z Help : More Information
2018-08-31T20:11:21.8303216Z ==============================================================================
2018-08-31T20:11:22.0840136Z not found echo: null
2018-08-31T20:11:22.0887655Z ##[section]Finishing: Shell Script

Here is may script:

#!/usr/bin/env bash

DIR=/d/git/eSim.Beneficio
if [ -d "$DIR" ]; then
    printf '%s\n' "Removing Lock ($DIR)"
    rm -rf "$DIR"
fi

#navigate to git directory
cd /d/git/

#clone repo
git clone https://<user>:<password>@mongeral.visualstudio.com/DefaultCollection/Projetos/_git/eSim.Beneficio

cd /d/git/eSim.Beneficio

# Checkout master branch and merge version branch into master
git checkout automaticMergeTest
git merge master --no-ff --no-edit
git push
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

# Success
echo "-------------------------------------------------------------------------"
echo "Merge master into $CURRENT_BRANCH complete"

I've ran this script in build server e got success.

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions